TopLink 10.1.3+ SessionLog implementation that logs through Commons Logging.
The namespace used is "oracle.toplink.xxx", with the latter part being
the TopLink log category ("sql"/"transaction"/etc). In case of no category
given, "session" will be used as default. This allows for fine-grained
filtering of log messages, for example through Log4J configuration.
Maps TopLink's SEVERE level to CL ERROR, TopLink's WARNING to CL WARN,
TopLink's INFO to CL INFO, TopLink's CONFIG/FINE/FINER to CL DEBUG,
and TopLink's FINEST to CL TRACE. This results in common CL log behavior:
INFO logging only at startup; operation logging at DEBUG level. Debug logging
can be further filtered according to categories: for example, activate Log4J
DEBUG logging for category "oracle.toplink.sql" to see the generated SQL.
Note: This implementation will only work on TopLink 10.1.3 or higher,
as it is built against TopLink's new SessionLog facilities in the
oracle.toplink.logging package, supporting log categories.
author: Juergen Hoeller since: 1.2 See Also: CommonsLoggingSessionLog904 See Also: oracle.toplink.logging.JavaLog See Also: org.springframework.orm.toplink.LocalSessionFactoryBean.setSessionLog |