1 Reply Latest reply on Sep 15, 2010 12:52 AM by jaikiran pai

    Filtered logging not showing debug in 5.1.0GA

    Lawrence Sica Newbie

      Hey all,

       

      I've setup jboss to log applications to separate logs.  It is working, except debug will not show in the one log.  It shows info and other thresholds but not to the debug level.  I've included the relevant setup below.  I am trying to split all the debug to a separate log for a single application.  Is this possible?

       

      <appender name="misrDebug" class="org.jboss.logging.appender.DailyRollingFileAppender">

            <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>

            <param name="Append" value="true"/>

            <param name="Threshold" value="DEBUG"/>

            <param name="File" value="${jboss.server.log.dir}/misrDebug.log"/>

            <param name="DatePattern" value="'.'yyyy-MM-dd"/>

            <layout class="org.apache.log4j.PatternLayout">

              <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>

            </layout>

              <filter class="org.jboss.logging.filter.TCLMCFilter">

                      <param name="AcceptOnMatch" value="true"/>

                      <param name="DeployURL" value="MISR.war"/>

              </filter>

        <!-- end the filter chain here -->

        <filter class="org.apache.log4j.varia.DenyAllFilter"></filter>

      </appender>

      <!-- MISR -->
      <appender name="misrDebug" class="org.jboss.logging.appender.DailyRollingFileAppender">
            <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
            <param name="Append" value="true"/>
            <param name="Threshold" value="DEBUG"/>
            <param name="File" value="${jboss.server.log.dir}/misrDebug.log"/>
            <param name="DatePattern" value="'.'yyyy-MM-dd"/>
            <layout class="org.apache.log4j.PatternLayout">
              <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
            </layout>
              <filter class="org.jboss.logging.filter.TCLMCFilter">
                      <param name="AcceptOnMatch" value="true"/>
                      <param name="DeployURL" value="MISR.war"/>
              </filter>
        <!-- end the filter chain here -->
        <filter class="org.apache.log4j.varia.DenyAllFilter"></filter>
      </appender>

       

      <appender name="misrInfo" class="org.apache.log4j.DailyRollingFileAppender">

            <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>

            <param name="Append" value="true"/>

            <param name="Threshold" value="INFO"/>

            <param name="File" value="${jboss.server.log.dir}/misrInfo.log"/>

            <param name="DatePattern" value="'.'yyyy-MM-dd"/>

            <layout class="org.apache.log4j.PatternLayout">

            <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>

            </layout>

              <filter class="org.jboss.logging.filter.TCLMCFilter">

                      <param name="AcceptOnMatch" value="true"/>

                      <param name="DeployURL" value="MISR.war"/>

              </filter>

        <!-- end the filter chain here -->

        <filter class="org.apache.log4j.varia.DenyAllFilter"></filter>

      </appender>