Package org.javasimon.jdbc.logging

Logging feature of Simon JDBC Proxy driver.

See:
          Description

Class Summary
CallbackLogParams CallbackLogParams is data object and contains parameters from callback that are interesting for logging.
LoggingCallback LoggingCallback implements JDBC logging logic.
LoggingCallback.CsvFormatter CsvFormatter formats log messages to comma separated value form.
LoggingCallback.HumanFormatter HumanFormatter formats log messages to human readable form.
SimonFormatter SimonFormatter is abstract root for custom log formatters for logging feature of Simon JDBC driver.
 

Package org.javasimon.jdbc.logging Description

Logging feature of Simon JDBC Proxy driver.

This logging feature is based on Callback feature of Javasimon core library, see Callback. In short, Callback feature allow intercept event from Simon (like start, stop, etc.) and perform custom action, in this case log message with details into file or to console.

By default, start and stop event from all JDBC stopwatch Simons are logged. Jdbc stopwatches are determined by provided JDBC prefix. This means that logged events are connections starts and stops, statements starts and stops and sql executions.

Java standard logging feature (java.util.logging) is used for logging from Simon JDBC Proxy driver. There are three targets where to log and also three ways how to setup logging. Where to log:

Log messages are by default formated to human readable form by build in human formatter (identificator: HUMAN). There is also other build-in csv formatter (identifier CSV). There is also possibility to provide custom formatter. Only requriment is that custom formatter extends from SimonFormatter.
How to setup JDBC logging:



Copyright © 2011. All Rights Reserved.