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/
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:
- Prepared statement arguments.
INSERT INTO People VALUES (1, John Smith);
becomesINSERT INTO People VALUES (?, ?);
- Exceptions. Instead of logging exception messages along with stacktraces, exception class names will be appended to error messages.