Skip navigation links
oracle.toplink.logging
Class DefaultSessionLog
java.lang.Object
oracle.toplink.logging.AbstractSessionLog
oracle.toplink.sessions.DefaultSessionLog
oracle.toplink.logging.DefaultSessionLog
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable, SessionLog, SessionLog
- public class DefaultSessionLog
- extends DefaultSessionLog
Purpose: Default log used for the session when message logging is enabled. The session can log information such as,
- all SQL executed
- informational messages
- debugging information
- all exceptions that occur within TopLink
As well information about the message can be logged such as,
- the session logging the message
- the connection executing the SQL
- the thread in which the log entry occured
- the exact time (to milliseconds) that the log entry occured
- the stack trace to the exception
- See Also:
SessionLog
, AbstractSessionLog
, Serialized Form
Fields inherited from interface oracle.toplink.logging.SessionLog |
ALL, CACHE, CONFIG, CONNECTION, DMS, EJB, EJB_ANNOTATION, EVENT, FINE, FINER, FINEST, INFO, OFF, PROPAGATION, QUERY, SEQUENCING, SEVERE, SQL, TRANSACTION, WARNING, WEAVER |
Constructor Summary |
DefaultSessionLog()
PUBLIC: Create a new default session log. |
DefaultSessionLog(java.io.Writer writer)
PUBLIC: Create a new default session log for the given writer. |
Method Summary |
java.lang.String |
getWriterFilename()
PUBLIC: For the given writer, return it's associated filename. |
void |
log(SessionLogEntry entry)
PUBLIC: Log the entry. |
void |
setWriter(java.lang.String aFileName)
PUBLIC: Set the writer that will receive the formatted log entries for a file name. |
Methods inherited from class oracle.toplink.sessions.DefaultSessionLog |
dontLogDebug, dontLogExceptions, dontLogExceptionStackTrace, dontPrintConnection, dontPrintDate, dontPrintSession, dontPrintThread, logDebug, logExceptions, logExceptionStackTrace, printConnection, printDate, printSession, printThread |
Methods inherited from class oracle.toplink.logging.AbstractSessionLog |
config, fine, finer, finest, getDateFormat, getLevel, getLevel, getLog, getSession, getWriter, info, log, log, log, log, log, log, log, logThrowable, setDateFormat, setLevel, setLevel, setLog, setSession, setShouldLogDebug, setShouldLogExceptions, setShouldLogExceptionStackTrace, setShouldPrintConnection, setShouldPrintDate, setShouldPrintSession, setShouldPrintThread, setWriter, severe, shouldLog, shouldLog, shouldLogDebug, shouldLogExceptions, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, throwing, warning |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSessionLog
public DefaultSessionLog()
- PUBLIC: Create a new default session log.
DefaultSessionLog
public DefaultSessionLog(java.io.Writer writer)
- PUBLIC: Create a new default session log for the given writer.
log
public void log(SessionLogEntry entry)
- PUBLIC: Log the entry. This writes the log entries information to a writer such as System.out or a file. This must be synchronized as it will be called by many threads in three-tier.
-
- Specified by:
log
in interface SessionLog
- Overrides:
log
in class DefaultSessionLog
setWriter
public void setWriter(java.lang.String aFileName)
- PUBLIC: Set the writer that will receive the formatted log entries for a file name.
-
- Overrides:
setWriter
in class DefaultSessionLog
getWriterFilename
public java.lang.String getWriterFilename()
- PUBLIC: For the given writer, return it's associated filename. If associated writer does not have a filename, return null.
-
- Overrides:
getWriterFilename
in class DefaultSessionLog
Skip navigation links