Praveen, Try putting debug="true" in your <configuration>. So you get <configuration debug="true">
This will then make logback print out information about it's initialisation. David On 27 May 2013, at 14:42, praveen patil <[email protected]> wrote: > 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. > > > On Mon, May 27, 2013 at 6:09 PM, praveen patil <[email protected]> > wrote: >> Hi folks, >> >> I am an ofbiz user. In pur project we are facing a requirement to logging on >> per thread basis. >> 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. >> this is my config file >> >> >> ?xml version="1.0" encoding="UTF-8"?> >> <configuration> >> >> <appender name="SIFT" >> class="ch.qos.logback.classic.sift.SiftingAppender"> >> <discriminator class="com.logger.ThreadNameBasedDiscriminator"/> >> <sift> >> <appender class="ch.qos.logback.core.FileAppender"> >> <file>runtime/logs/app-${threadName}.html</file> >> <layout class="ch.qos.logback.classic.PatternLayout"> >> <pattern><div class="%p">%d (%t) >> [%24F:%-3L:%-5p]%x %m </div>%n</pattern> >> </layout> >> </appender> >> </sift> >> </appender> >> >> <root level="ALL"> >> <appender-ref ref="SIFT" /> >> </root> >> </configuration> >> >> How do i know that my logback.xml has initilized and if not initilized how >> do i configured it manually (programatically). >> >> Thanx in advance >> >> cheers, >> praveen > > _______________________________________________ > Logback-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________ Logback-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/logback-user
