[logback-user] Object domain from layouts
David Roussel
nabble at diroussel.xsmail.com
Thu Jul 25 22:39:56 CEST 2013
In your app code call the logger like this:
log.info("Employee: {}", myEmployee);
Then in the formatter, call event.getArgumentArray() - http://logback.qos.ch/xref/ch/qos/logback/classic/spi/LoggingEvent.html#143
Then look at each arg and check if it is an Employee.
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20130725/9210b4c4/attachment.html>
More information about the Logback-user
mailing list