[jboss-user] [Installation, Configuration & DEPLOYMENT] - log4j config file behaviour

brettcave do-not-reply at jboss.com
Tue Jul 7 13:48:16 EDT 2009


In jboss-log4j.conf, how does defining categories affect which appenders are used. E.g. If I have something like:


  | <category name="com.mycompany.package1">
  |   <priority value="ERROR" />
  |   <appender-ref ref="CONSOLE" />
  | </category>
  | 
  | <category name="com.mycompany.package2">
  |   <priority value="ERROR" />
  | </category>
  | 
  | <root>
  |   <priority value="INFO" />
  |   <appender-ref ref="SMTP" />
  |   <appender-ref ref="CONSOLE" />
  |   <appender-ref ref="FILE" />
  | </root>
  | 


Will com.mycompany.package1 only log ERROR to console?
Will com.mycompany.package2 log ERROR to all appenders in the root?


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

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



More information about the jboss-user mailing list