AFAIK the root logger should be the last logger.  BTW "category" has
been superseeded by "logger"

On 6/7/07, jsobieski <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to