[slf4j-user] log4j-over-slf4j version for log4j 1.2.17

Debraj Manna subharaj.manna at gmail.com
Tue Jan 30 18:56:09 CET 2018


Something like the below code -

import org.apache.log4j.Logger;

Logger logger = Logger.getLogger(name);

SyslogAppender appender = (SyslogAppender) logger.getAppender(V_RNI_
SYSLOG_LOGGER);

...

appender.setLayout(new org.apache.log4j.PatternLayout("%c{2} %m %n"));
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20180130/e5c55c6a/attachment.html>


More information about the slf4j-user mailing list