arnoldkesselaar
Programmer
Hi,
When a start the Log4J HierarchyDynamicMBean in the JConsole I get get "Threshold unavailable" with all my appenders. I therefore cannot set or get the thresholds for any of my appenders thourgh jconsole. When I set the threshold in the properies file it seems to work though. Any ideas??
Here is a sample of my config file:
log4j.rootCategory=INFO,STDOUT,LOGFILE,MBEAN
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%d %p [%c] - <%m>%n
log4j.appender.STDOUT.Threshold=WARN
When a start the Log4J HierarchyDynamicMBean in the JConsole I get get "Threshold unavailable" with all my appenders. I therefore cannot set or get the thresholds for any of my appenders thourgh jconsole. When I set the threshold in the properies file it seems to work though. Any ideas??
Here is a sample of my config file:
log4j.rootCategory=INFO,STDOUT,LOGFILE,MBEAN
log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%d %p [%c] - <%m>%n
log4j.appender.STDOUT.Threshold=WARN