|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.toplink.sessions.DefaultSessionLog
Purpose: Default log used for the session when message logging is enabled. The session can log information such as,
As well information about the message can be logged such as,
SessionLog
, DefaultSessionLog
, Session.logMessage(String)
, Serialized FormConstructor 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 | |
void |
dontLogDebug() PUBLIC: Set debug messages logging off. |
void |
dontLogExceptions() PUBLIC: Set exceptions logging off. |
void |
dontLogExceptionStackTrace() PUBLIC: Set the exception's stack trace not to be logged. |
void |
dontPrintConnection() PUBLIC: Configure the log to NOT print the connection. |
void |
dontPrintDate() PUBLIC: Configure the log to NOT print the date and/or time. |
void |
dontPrintSession() PUBLIC: Configure the log to NOT print the session. |
void |
dontPrintThread() PUBLIC: Configure the log to NOT print the thread. |
java.text.DateFormat |
getDateFormat() PUBLIC: Return the date format to be used when printing a log entry date. |
java.io.Writer |
getWriter() PUBLIC: Return the writer that will receive the formatted log entries. |
java.lang.String |
getWriterFilename() PUBLIC: For the given writer, return it's associated filename. |
void |
log(SessionLogEntry entry) PUBLIC: Log the entry. |
void |
logDebug() PUBLIC: Set debug messages logging. |
void |
logExceptions() PUBLIC: Set exceptions logging. |
void |
logExceptionStackTrace() PUBLIC: Set the exception's stack trace to be logged. |
void |
printConnection() PUBLIC: Configure the log to print the connection. |
void |
printDate() PUBLIC: Configure the log to print the date and/or time. |
void |
printSession() PUBLIC: Configure the log to print the session. |
void |
printThread() PUBLIC: Configure the log to print the thread. |
void |
setDateFormat(java.text.DateFormat dateFormat) PUBLIC: Set the date format to be used when printing a log entry date. |
void |
setShouldLogDebug(boolean shouldLogDebug) PUBLIC: Set debug messages logging. |
void |
setShouldLogExceptions(boolean shouldLogExceptions) PUBLIC: Set exceptions logging. |
void |
setShouldLogExceptionStackTrace(boolean shouldLogExceptionStackTrace) PUBLIC: Set if the exception's stack trace should be logged. |
void |
setShouldPrintConnection(boolean shouldPrintConnection) PUBLIC: Set whether the log should print the connection. |
void |
setShouldPrintDate(boolean shouldPrintDate) PUBLIC: Set whether the log should print the date and/or time. |
void |
setShouldPrintSession(boolean shouldPrintSession) PUBLIC: Set whether the log should print the session. |
void |
setShouldPrintThread(boolean shouldPrintThread) PUBLIC: Set whether the log should print the thread. |
void |
setWriter(java.lang.String aFileName) PUBLIC: Set the writer that will receive the formatted log entries for a file name. |
void |
setWriter(java.io.Writer writer) PUBLIC: Set the writer that will receive the formatted log entries. |
boolean |
shouldLogDebug() PUBLIC: Return if debug messages should be logged. |
boolean |
shouldLogExceptions() PUBLIC: Return if exceptions should be logged. |
boolean |
shouldLogExceptionStackTrace() PUBLIC: Return if the exception's stack trace should be logged. |
boolean |
shouldPrintConnection() PUBLIC: Return whether the log should print the connection. |
boolean |
shouldPrintDate() PUBLIC: Return whether the log should print the date and/or time. |
boolean |
shouldPrintSession() PUBLIC: Return whether the log should print the session. |
boolean |
shouldPrintThread() PUBLIC: Return whether the log should print the thread. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultSessionLog()
public DefaultSessionLog(java.io.Writer writer)
Method Detail |
public void dontLogDebug()
public void dontLogExceptions()
public void dontLogExceptionStackTrace()
public void dontPrintConnection()
public void dontPrintDate()
public void dontPrintSession()
public void dontPrintThread()
public java.text.DateFormat getDateFormat()
public java.io.Writer getWriter()
getWriter
in interface SessionLog
public void log(SessionLogEntry entry)
log
in interface SessionLog
entry
- oracle.toplink.sessions.LogEntrypublic void logDebug()
public void logExceptions()
public void logExceptionStackTrace()
public void printConnection()
public void printDate()
public void printSession()
public void printThread()
public void setDateFormat(java.text.DateFormat dateFormat)
dateFormat
- java.text.DateFormatpublic void setShouldLogDebug(boolean shouldLogDebug)
setShouldLogDebug
in interface SessionLog
public void setShouldLogExceptions(boolean shouldLogExceptions)
setShouldLogExceptions
in interface SessionLog
public void setShouldLogExceptionStackTrace(boolean shouldLogExceptionStackTrace)
setShouldLogExceptionStackTrace
in interface SessionLog
public void setShouldPrintConnection(boolean shouldPrintConnection)
setShouldPrintConnection
in interface SessionLog
public void setShouldPrintDate(boolean shouldPrintDate)
setShouldPrintDate
in interface SessionLog
public void setShouldPrintSession(boolean shouldPrintSession)
setShouldPrintSession
in interface SessionLog
public void setShouldPrintThread(boolean shouldPrintThread)
setShouldPrintThread
in interface SessionLog
public void setWriter(java.io.Writer writer)
setWriter
in interface SessionLog
writer
- java.io.Writerpublic void setWriter(java.lang.String aFileName)
public java.lang.String getWriterFilename()
public boolean shouldLogDebug()
shouldLogDebug
in interface SessionLog
public boolean shouldLogExceptions()
shouldLogExceptions
in interface SessionLog
public boolean shouldLogExceptionStackTrace()
shouldLogExceptionStackTrace
in interface SessionLog
public boolean shouldPrintConnection()
shouldPrintConnection
in interface SessionLog
public boolean shouldPrintDate()
shouldPrintDate
in interface SessionLog
public boolean shouldPrintSession()
shouldPrintSession
in interface SessionLog
public boolean shouldPrintThread()
shouldPrintThread
in interface SessionLog
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |