|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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,
SessionLog,
DefaultSessionLog,
Session.logMessage(String), Serialized Form| 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 |
| Type | Method |
|---|---|
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 SessionLogpublic void log(SessionLogEntry entry)
log in interface SessionLogoracle.toplink.sessions.SessionLogentry - 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)
public void setShouldLogDebug(boolean shouldLogDebug)
setShouldLogDebug in interface SessionLogpublic void setShouldLogExceptions(boolean shouldLogExceptions)
setShouldLogExceptions in interface SessionLogpublic void setShouldLogExceptionStackTrace(boolean shouldLogExceptionStackTrace)
setShouldLogExceptionStackTrace in interface SessionLogpublic void setShouldPrintConnection(boolean shouldPrintConnection)
setShouldPrintConnection in interface SessionLogpublic void setShouldPrintDate(boolean shouldPrintDate)
setShouldPrintDate in interface SessionLogpublic void setShouldPrintSession(boolean shouldPrintSession)
setShouldPrintSession in interface SessionLogpublic void setShouldPrintThread(boolean shouldPrintThread)
setShouldPrintThread in interface SessionLogpublic void setWriter(java.io.Writer writer)
setWriter in interface SessionLogpublic void setWriter(java.lang.String aFileName)
public java.lang.String getWriterFilename()
public boolean shouldLogDebug()
shouldLogDebug in interface SessionLogpublic boolean shouldLogExceptions()
shouldLogExceptions in interface SessionLogpublic boolean shouldLogExceptionStackTrace()
shouldLogExceptionStackTrace in interface SessionLogpublic boolean shouldPrintConnection()
shouldPrintConnection in interface SessionLogpublic boolean shouldPrintDate()
shouldPrintDate in interface SessionLogpublic boolean shouldPrintSession()
shouldPrintSession in interface SessionLogpublic boolean shouldPrintThread()
shouldPrintThread in interface SessionLog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||