[jboss-user] [Installation, Configuration & Deployment] - Re: Configuring log4j.xml for different logger levels on Con

PeterJ do-not-reply at jboss.com
Tue Aug 22 10:39:18 EDT 2006


To get the console to show DEBUG messages, edit the CONSOLE appender as follows (changed text in red):

   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
  |       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |       <param name="Target" value="System.out"/>
  |       <param name="Threshold" value="DEBUG"/>
  | 
  |       <layout class="org.apache.log4j.PatternLayout">
  |          <!-- The default pattern: Date Priority [Category] Message\n -->
  |          <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
  |       </layout>
  |    </appender>

I noticed in the preview that using the color tag split the line, the lines "Threshold", DEBUG, and following line should be all on one line.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966717#3966717

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966717



More information about the jboss-user mailing list