[logback-dev] exceptionMessageIncluded parameter for SyslogAppender

Durchholz, Joachim Joachim.Durchholz at hennig-fahrzeugteile.de
Fri Oct 18 11:27:51 CEST 2013


FWIW, I tend to use SMTPAppender to show more context.

________________________________

From: logback-dev [mailto:logback-dev-bounces at qos.ch] On Behalf Of Roman Ivanov
Sent: Friday, October 18, 2013 2:15 AM
To: logback-dev at qos.ch
Subject: [logback-dev] exceptionMessageIncluded parameter for SyslogAppender


Hi Developers,

Does it make sense to extend SysLogAppender with "throwableMessageAppended" field to allow attach Exception/Throwable message
to event ?

Reason: Syslog is non linux/unix event logging system that does not support multi-line, so java developers play with substitution of EndOfLine symbols to make it conform unix rules for event logging. But in this case event become unreadable if full stacktrace is in event. It is most likely required only to see Exception message and then decide how to react on problem.

No message nor full stacktrace is enough to investigate and fix problem - developer need see full log from job and context of event before. So having ability to have in Syslog only exception message is more convenient and short.

In detail, and examples: http://roman-ivanov.blogspot.com/2013/10/logging-exception-message-in-log-event.html

Thanks,
Roman Ivanov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20131018/056d1fea/attachment.html>


More information about the logback-dev mailing list