[logback-user] Logaback not initializing !!!!!!!

praveen patil iampraveenpatil at gmail.com
Mon May 27 14:42:29 CEST 2013


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 <iampraveenpatil at gmail.com>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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20130527/379e9c15/attachment.html>


More information about the Logback-user mailing list