[SNMP4J] Debug messages question?
Frank Fock
fock at agentpp.com
Fri Jun 16 15:55:58 CEST 2006
Hello Anthony,
The answer to your question depends on the LogFactory
you are using (want to use). For Log4J, you can use
a log4j specific configuration file that can be
specified via
-Dlog4j.configuration=file://C:\mylog.properties
For information about format and content see
http://logging.apache.org/log4j/docs/
Best regards,
Frank
Zinger, Anthony J wrote:
> Hello Frank,
>
>
>
> Is there an easy way to turn off the debug messages that are being
> written by the SNMP4j agent?
>
>
>
> I have added the following line to my agent:
>
> LogFactory.setLogFactory(new LogFactory());
>
> However, this turns off all messages. What I would like to do is to
> only display messages that are INFO or greater, i.e. do NOT display
> DEBUG messages. Or only display messages for my agent's class and NOT
> all of the other classes that register with the LogFactory?
>
>
>
> Thanks.
>
>
>
> Anthony J. Zinger
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list