[logback-user] logger option with string format, argument array and throwable
Merritt H Derr
MDerr at nycm.com
Fri Jan 7 17:36:26 CET 2011
This is for Logback 0.9.27.
When logging using DBAppender, The argument fields in the database table
logging_event are filled using the arguments from the log statement when
used in for example the debug(String format, Object arguments) format.
For the case where I want to log with a throwable included that would land
in the logging_event_exception table, there is no debug method that will
take a format, argument array and throwable, so I can't log using a format
and argument array and hence, all the argument fields (Arg0, Arg1, Arg2,
Arg3) are left blank in the logging_event table.
Other than storing those arguments in the MDC for this case, is there
another work around? Or am I just missing something simple?
Join us on Facebook at www.facebook.com/NYCMInsurance.
This email and any attachments to it are confidential and intended solely
for the individual or entity to whom it is addressed. Any unauthorized
review, use, disclosure or distribution is prohibited. If you have
received this email in error, please contact the sender by reply email and
destroy all copies of the original message.
More information about the Logback-user