|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.log.LogFactory
org.snmp4j.log.ConsoleLogFactory
public class ConsoleLogFactory
The 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.
| Field Summary |
|---|
| Fields inherited from class org.snmp4j.log.LogFactory |
|---|
SNMP4J_LOG_FACTORY_SYSTEM_PROPERTY |
| Constructor Summary | |
|---|---|
ConsoleLogFactory()
|
|
| Method Summary | |
|---|---|
protected LogAdapter |
createLogger(java.lang.Class c)
Creates a Logger for the specified class. |
protected LogAdapter |
createLogger(java.lang.String className)
Creates a Logger for the specified class. |
| Methods inherited from class org.snmp4j.log.LogFactory |
|---|
getLogFactory, getLogger, getLogger, getRootLogger, loggers, setLogFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleLogFactory()
| Method Detail |
|---|
protected LogAdapter createLogger(java.lang.Class c)
LogFactoryNoLogger logger instance which disables logging.
Overwrite this method the return a custom logger to enable logging for
SNMP4J.
createLogger in class LogFactoryc - the class for which a logger needs to be created.
LogAdapter instance.protected LogAdapter createLogger(java.lang.String className)
LogFactoryNoLogger logger instance which disables logging.
Overwrite this method the return a custom logger to enable logging for
SNMP4J.
createLogger in class LogFactoryclassName - the class name for which a logger needs to be created.
LogAdapter instance.
|
Copyright 2003-2009 Frank Fock and Jochen Katz (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||