oracle.toplink.logging
Interface SessionLog

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.

setShouldPrintSession

getWriter

java.io.Writer getWriter()

Return the writer to which an accessor writes logged messages and SQL.
If not set, this reference usually defaults to a writer on System.out.
To enable logging, logMessages must be turned on in the session.