<div dir="ltr">Hi folks,<div><br></div><div style>I am an ofbiz user. In pur project we are facing a requirement to logging on per thread basis.</div><div style>ofbiz uses Log4j default, but in our custom component we have used logabck with slf4j. I have put all the jar correctly and logback.xml on class path. </div>
<div style>this is my config file</div><div style><br></div><div style><br></div><div style><div>?xml version="1.0" encoding="UTF-8"?></div><div><configuration></div><div> </div><div> <appender name="SIFT" class="ch.qos.logback.classic.sift.SiftingAppender"></div>
<div> <discriminator class="com.logger.ThreadNameBasedDiscriminator"/></div><div> <sift></div><div> <appender class="ch.qos.logback.core.FileAppender"></div><div>
<file>runtime/logs/app-${threadName}.html</file></div><div> <layout class="ch.qos.logback.classic.PatternLayout"></div><div> <pattern><div class="%p">%d (%t) [%24F:%-3L:%-5p]%x %m </div>%n</pattern></div>
<div> </layout></div><div> </appender></div><div> </sift></div><div> </appender></div><div> </div><div> <root level="ALL"></div><div> <appender-ref ref="SIFT" /></div>
<div> </root></div><div></configuration></div><div><br></div><div style>How do i know that my logback.xml has initilized and if not initilized how do i configured it manually (programatically).</div><div style>
<br></div><div style>Thanx in advance </div><div style><br></div><div style>cheers,</div><div style>praveen</div></div></div>