logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: how to disable framework logging
Date Thu, 07 Jun 2007 15:48:39 GMT
AFAIK the root logger should be the last logger.  BTW "category" has
been superseeded by "logger"

On 6/7/07, jsobieski <jessica.sobieski@gmail.com> wrote:
>
> Hi,
>
> I am having problem with Tapestry framework logging lots of debug statements
> but I guess this question is more generic, in how to disable logging for any
> framework that my code may be using.
>
> My web application is built on top of Tapestry and I want to see only my
> application's log statements. Tapestry is using "org.apache.tapestry"
> namespace and so I configured my log4j.xml as following:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
>
>   <appender name="console" class="org.apache.log4j.ConsoleAppender">
>
>     <layout class="org.apache.log4j.PatternLayout">
>
>     </layout>
>   </appender>
>
>   <!-- An appender which writes to file -->
>   <appender name="main" class="org.apache.log4j.DailyRollingFileAppender">
>
>
>
>     <layout class="org.apache.log4j.PatternLayout">
>
>     </layout>
>   </appender>
>
>   <!-- An appender which writes to file -->
>   <appender name="tapestry"
> class="org.apache.log4j.DailyRollingFileAppender">
>
>
>
>     <layout class="org.apache.log4j.PatternLayout">
>
>     </layout>
>   </appender>
>
>   <root>
>     <priority value="error" additivity="false" />
>     <appender-ref ref="console" />
>   </root>
>
>   <category name="org.apache.tapestry" additivity="false">
>     <priority value="error" />
>     <appender-ref ref="tapestry" />
>   </category>
>
>   <category name="com.kkamerica.productcreator" additivity="false">
>     <priority value="debug"/>
>     <appender-ref ref="main"/>
>   </category>
>
> </log4j:configuration>
>
> Yet, Tapestry is still logging at DEBUG into my application's log file
> (prodc.log). Is my configuration incorrect or what else may I be doing
> wrong?
>
> Thanks, Jessica.
> --
> View this message in context: http://www.nabble.com/how-to-disable-framework-logging-tf3884588.html#a11010395
> Sent from the Log4j - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message