public class ConsoleLogFactory extends LogFactory
Log4jLogFactory
implements a SNMP4J LogFactory for
Log4J. In order to use Log4J for logging SNMP4J log messages the
static LogFactory.setLogFactory(org.snmp4j.log.LogFactory)
method has to be used before
any SNMP4J class is referenced or instantiated.SNMP4J_LOG_FACTORY_SYSTEM_PROPERTY
Constructor and Description |
---|
ConsoleLogFactory() |
Modifier and Type | Method and Description |
---|---|
protected LogAdapter |
createLogger(Class c)
Creates a Logger for the specified class.
|
protected LogAdapter |
createLogger(String className)
Creates a Logger for the specified class.
|
getLogFactory, getLogger, getLogger, getRootLogger, loggers, setLogFactory
protected LogAdapter createLogger(Class c)
LogFactory
NoLogger
logger instance which disables logging.
Overwrite this method the return a custom logger to enable logging for
SNMP4J.createLogger
in class LogFactory
c
- the class for which a logger needs to be created.LogAdapter
instance.protected LogAdapter createLogger(String className)
LogFactory
NoLogger
logger instance which disables logging.
Overwrite this method the return a custom logger to enable logging for
SNMP4J.createLogger
in class LogFactory
className
- the class name for which a logger needs to be created.LogAdapter
instance.Copyright © 2013 SNMP4J.org. All rights reserved.