Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 866 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 866 Bytes

log4jdbc

Forked from https://github.com/arthurblake/log4jdbc .

You can view the usage instructions at the old Google Code hosting site: https://code.google.com/p/log4jdbc/

Additinal Configuration

LOG4JDBC_SQL_SHOW_PARAMS

Controls logging of potentially sensitive information.

Either true or false (default) are allowed. Can be specified either as an OS environment variable or a Java system property (for example, -DLOG4JDBC_SQL_SHOW_PARAMS=true). Java system property takes precedence if present.

When set to false, the following will be excluded from log4jdbc logging:

  1. Prepared statement arguments. INSERT INTO People VALUES (1, John Smith); becomes INSERT INTO People VALUES (?, ?);
  2. Exceptions. Instead of logging exception messages along with stacktraces, exception class names will be appended to error messages.