[slf4j-user] log4j-over-slf4j version for log4j 1.2.17
Debraj Manna
subharaj.manna at gmail.com
Tue Jan 30 19:26:12 CET 2018
Ok. Is there any version compatibility of log4j-over-slf4j and log4j? For
example if I am using log4j version 'x' then I should use log4j-over-slf4j
version 'y'?
On Tue, Jan 30, 2018 at 11:33 PM, Ceki <ceki at qos.ch> wrote:
>
> 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_SYSLO
>> G_LOGGER);
>>
>> ...
>>
>> appender.setLayout(new org.apache.log4j.PatternLayout("%c{2} %m %n"));
>>
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20180130/9072680e/attachment.html>
More information about the slf4j-user
mailing list