[logback-user] how to disable logback from logging system properties?

Bryan Ward wardbt at gmail.com
Fri May 27 11:40:34 CEST 2011


I'm using the DBAppender and the MDC to log certain elements of the
requests into our application.

I've noticed that besides just the elements that I've put in the MDC,
all of the system properties are also being logged to the
logging_event_property table.  This has caused many concerns because
there are certain system properties that should not be logged.

Here is my DB Appender configuration

<appender name="DB" class="ch.qos.logback.classic.db.DBAppender">
            <dataSource class="com.mchange.v2.c3p0.ComboPooledDataSource">
            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %X %ex{short}
- %n</pattern>

Note that the properties for username / password / etc are pulled in
from another file using the

<property file="_path_to_file/conf.properties" />

All the properties in the external file are being logged which contain
passwords etc that do not belong in the logging_event_property table.

I've searched through the manual and the documentation but cannot find
a way to disable this behaviour.  Any help would be most appreciated!



More information about the Logback-user mailing list