Traces in the JVM SNMP Agent
By daniel on Mar 20, 2006
- Activate JMX traces
- Dynamically control/activate any kind of traces produced through the java.util.logging API.
What I haven't said so far - but that you may have already discovered on your own, is that the JVM SNMP agent also produces traces through the java.util.logging API. Therefore, these traces can be activated in exactly the same way. The loggers used by the JVM SNMP Agent are com.sun.jmx.snmp.daemon and com.sun.jmx.snmp.
If you are using a logging.properties file to activate your application traces, then you can also control the JVM SNMP agent traces by specifying levels for these two loggers. For instance, you could add these two lines to your logging.properties:
Otherwise, you can use one of the methods described in my previous blogs to switch on these loggers traces dynamically.Cheers,