
17 Mar
2011
17 Mar
'11
8:53 p.m.
Is it possible to configure logback so that most loggers' levels are modifiable via JMX, but restrict manipulation of certain loggers? E.g., enable the JMX Configurator for the root logger, but disable it for specific loggers with additivity="false"? It appears that the <jmxConfigurator /> element can only appear at the top level of a <configuration> block. The goal, for my application, is to allow user control of logging in the field, for debugging, but not allow anyone to disable certain loggers that handle security-related events. Preferably, those loggers wouldn't even show up in as attributes in jconsole. (This is a Java desktop app, not web.)