1 Reply Latest reply on Jul 31, 2008 11:58 AM by peterj

    Configure to Log for same class different level in Different

    milochanzy

      Hi,

      What I want to achive is that Traces from the application to be in file named, for e.g. abc.tr and the Logs from the same application to be in file named, for e.g. abc.log.

      I can configure that using the log4j.properties using log4j.logger.trace for traces and log4j.logger for the Logs. Can some one help in configuring the same in the jboss-log4j.xml?

      Thanks in Anticipation,
      Milo.

        • 1. Re: Configure to Log for same class different level in Diffe
          peterj

          Are you looking for something like this:

          <appender name="TRACE" ...>
           <param name="Threshold" value="TRACE" />
           ...
          </appender>
          <appender name="LOG" ...>
           <param name="Threshold" value="INFO" />
           ...
          </appender>
          <category name="trace.this">
           <priority value="TRACE" />
           <appender-ref ref="TRACE" />
          </category>
          <category name="log.this">
           <priority value="INFO" />
           <appender-ref ref="LOG" />
          </category>