|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SessionLog is the ever-so-simple interface used by TopLink to log generated messages and SQL. An implementor of this interface can be passed to the TopLink session (via the #setSessionLog(SessionLog) method); and all logging data will be passed through to the implementor via an instance of SessionLogEntry. This can be used to supplement debugging; or the entries could be stored in a database instead of logged to System.out; etc.
DefaultSessionLog
, SessionLogEntry
Method Summary | |
java.io.Writer |
getWriter() PUBLIC: Return the writer to which an accessor writes logged messages and SQL. |
void |
log(SessionLogEntry entry) PUBLIC: TopLink will call this method whenever something needs to be logged (messages, SQL, etc.). |
void |
setShouldLogDebug(boolean flag) PUBLIC: Call this method to set whether debugging info is logged. |
void |
setShouldLogExceptions(boolean flag) PUBLIC: Call this method to set whether exceptions are logged. |
void |
setShouldLogExceptionStackTrace(boolean flag) PUBLIC: Call this method to set whether exception stack traces are logged. |
void |
setShouldPrintConnection(boolean flag) PUBLIC: Call this method to set whether the connection is logged. |
void |
setShouldPrintDate(boolean flag) PUBLIC: Call this method to set whether the date is logged. |
void |
setShouldPrintSession(boolean flag) PUBLIC: Call this method to set whether the session is logged. |
void |
setShouldPrintThread(boolean flag) PUBLIC: Call this method to set whether the thread info is logged. |
void |
setWriter(java.io.Writer log) PUBLIC: Set the writer to which an accessor writes logged messages and SQL. |
boolean |
shouldLogDebug() PUBLIC: Call this method to determine whether debugging info is logged. |
boolean |
shouldLogExceptions() PUBLIC: Call this method to determine whether exceptions are logged. |
boolean |
shouldLogExceptionStackTrace() PUBLIC: Call this method to determine whether exception stack traces are logged. |
boolean |
shouldPrintConnection() PUBLIC: Call this method to determine whether the connection is logged. |
boolean |
shouldPrintDate() PUBLIC: Call this method to determine whether the date is logged. |
boolean |
shouldPrintSession() PUBLIC: Call this method to determine whether the session is logged. |
boolean |
shouldPrintThread() PUBLIC: Call this method to determine whether the thread info is logged. |
Method Detail |
public void log(SessionLogEntry entry)
entry
- oracle.toplink.sessions.LogEntrypublic boolean shouldLogDebug()
public boolean shouldLogExceptions()
public boolean shouldLogExceptionStackTrace()
public boolean shouldPrintDate()
public boolean shouldPrintThread()
public boolean shouldPrintConnection()
public boolean shouldPrintSession()
public void setShouldLogDebug(boolean flag)
public void setShouldLogExceptions(boolean flag)
public void setShouldLogExceptionStackTrace(boolean flag)
public void setShouldPrintDate(boolean flag)
public void setShouldPrintThread(boolean flag)
public void setShouldPrintConnection(boolean flag)
public void setShouldPrintSession(boolean flag)
public java.io.Writer getWriter()
public void setWriter(java.io.Writer log)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |