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

Ceki ceki at qos.ch
Tue Jan 30 19:03:04 CET 2018


You can use log4j-over-slf4j to route log4j calls to SLF4J which will in 
turn invoke an underlying logging backed of your choice. However, 
log4j-over-slf4j does not replicate all of log4j. In particular, 
log4j-over-slf4j does not replicate org.apache.log4j.net.SyslogAppender.

On 30.01.2018 18:56, Debraj Manna wrote:
> 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"));


More information about the slf4j-user mailing list