<div dir="ltr">On more thing i have logged some messages using LoggerFactory class and i can see them on console but i am not sure they are logged by initilizing logaback.xml.</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, May 27, 2013 at 6:09 PM, praveen patil <span dir="ltr"><<a href="mailto:iampraveenpatil@gmail.com" target="_blank">iampraveenpatil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi folks,<div><br></div><div>I am an ofbiz user. In pur project we are facing a requirement to logging on per thread basis.</div><div>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>this is my config file</div><div><br></div><div><br></div><div><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>How do i know that my logback.xml has initilized and if not initilized how do i configured it manually (programatically).</div><div>
<br></div><div>Thanx in advance </div><div><br></div><div>cheers,</div><div>praveen</div></div></div>
</blockquote></div><br></div>