<div dir="ltr">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'? </div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 30, 2018 at 11:33 PM, Ceki <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
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 <a href="http://org.apache.log4j.net" target="_blank">org.apache.log4j.net</a>.SyslogApp<wbr>ender.<div class="HOEnZb"><div class="h5"><br>
<br>
On 30.01.2018 18:56, Debraj Manna wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Something like the below code -<br>
<br>
import org.apache.log4j.Logger;<br>
<br>
Logger logger = Logger.getLogger(name);<br>
<br>
SyslogAppender appender = (SyslogAppender) logger.getAppender(V_RNI_SYSLO<wbr>G_LOGGER);<br>
<br>
...<br>
<br>
appender.setLayout(new org.apache.log4j.PatternLayout<wbr>("%c{2} %m %n"));<br>
</blockquote></div></div><div class="HOEnZb"><div class="h5">
______________________________<wbr>_________________<br>
slf4j-user mailing list<br>
<a href="mailto:slf4j-user@qos.ch" target="_blank">slf4j-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/slf4j-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/<wbr>listinfo/slf4j-user</a></div></div></blockquote></div><br></div>