public class DefaultSessionLog extends AbstractSessionLog implements Serializable
Purpose: Default log used for the session when message logging is enabled. The session can log information such as,
SessionLog
,
Session#logMessage(String)
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
fileName
The filename associated with this DefaultSessionLog, if it is being written out to a file
|
CONFIG_PREFIX, CONNECTION_STRING, dateFormat, defaultLog, FINE_PREFIX, FINER_PREFIX, FINEST_PREFIX, INFO_PREFIX, level, session, sessionHashCode, sessionType, SEVERE_PREFIX, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, THREAD_STRING, TOPLINK_PREFIX, WARNING_PREFIX, writer
ALL, CACHE, CONFIG, CONNECTION, DMS, EJB, EJB_OR_METADATA, EVENT, FINE, FINER, FINEST, INFO, loggerCategories, OFF, PROPAGATION, PROPERTIES, QUERY, SEQUENCING, SEVERE, SQL, TRANSACTION, WARNING, WEAVER
Constructor and Description |
---|
DefaultSessionLog()
PUBLIC:
Create a new default session log.
|
DefaultSessionLog(Writer writer)
PUBLIC:
Create a new default session log for the given writer.
|
Modifier and Type | Method and Description |
---|---|
String |
getWriterFilename()
PUBLIC:
For the given writer, return it's associated filename.
|
protected void |
initialize(Writer writer)
Initialize the log.
|
void |
log(SessionLogEntry entry)
INTERNAL:
Log the entry.
|
void |
setWriter(String aFileName)
PUBLIC:
Set the writer that will receive the
formatted log entries for a file name.
|
protected void |
writeMessage(String message)
Append the specified message information to the writer.
|
protected void |
writeSeparator()
Append the separator string to the writer.
|
buildDefaultDateFormat, buildSessionHashCode, buildSessionType, clone, config, fine, finer, finest, formatMessage, getConnectionString, getDateFormat, getDateString, getLevel, getLevel, getLog, getSession, getSessionString, getSessionString, getSupplementDetailString, getThreadString, getWriter, info, isOff, log, log, log, log, log, log, logThrowable, printPrefixString, setDateFormat, setLevel, setLevel, setLog, setSession, setShouldLogExceptionStackTrace, setShouldPrintConnection, setShouldPrintDate, setShouldPrintSession, setShouldPrintThread, setWriter, severe, shouldLog, shouldLog, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, throwing, translateLoggingLevelToString, translateStringToLoggingLevel, warning
protected String fileName
public DefaultSessionLog()
public DefaultSessionLog(Writer writer)
protected void initialize(Writer writer)
public void log(SessionLogEntry entry)
log
in interface SessionLog
log
in class AbstractSessionLog
entry
- oracle.toplink.essentials.sessions.LogEntrypublic void setWriter(String aFileName)
public String getWriterFilename()
protected void writeMessage(String message) throws IOException
IOException
protected void writeSeparator() throws IOException
IOException
Copyright © 2023. All rights reserved.