"mplesser" wrote : It doesnt work to filter out the log messages in TreeCache using log4j. | If i set a category "org.jboss.cache" to say "WARN" then the TreeCache ignores that level and still logs all the "INFO" messages. This is because TreeCache is derived from ServiceMBeanSupport which is defined in package "org.jboss.system" and thus is using the Logger declared in ServiceMBeanSupport which is declared protected. | This causes confusion since you'd have to configure a category for "org.jboss.system" in log4j to control the log level of the TreeCache. | | -markus
When the logger is created, we use getClass() which returns TreeCache.class and *not* ServiceMBeanSupport.class ! So logging works, just tested again with INFO and WARN. Maybe you're picking up the wrong log4j.props ? Do you use -Dlog4j.configuration, eg. -Dlog4j.configuration=file:c:\log4j.properties ? Bela View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842198#3842198 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842198 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
