/** * INTERNAL: getServerLog(): Return the ServerLog for this platform * * Return the default ServerLog in the base * * @return oracle.toplink.essentials.logging.SessionLog */ public oracle.toplink.essentials.logging.SessionLog getServerLog() { return new DefaultSessionLog(); }
/** * PUBLIC: * <p> * Return the singleton SessionLog. If the singleton SessionLog does not exist, * a new one is created based on the version of JDK being used from the Version class. * </p><p> * * @return the singleton SessionLog * </p> */ public static SessionLog getLog() { if (defaultLog == null) { defaultLog = new DefaultSessionLog(); } return defaultLog; }
/** * PUBLIC: * Return the session log to which an accessor logs messages and SQL. * If not set, this will default to a session log on a writer on System.out. */ public SessionLog getSessionLog() { if (sessionLog == null) { setSessionLog(new DefaultSessionLog()); } return sessionLog; }