Class AbstractInternalLogger
java.lang.Object
org.jboss.netty.logging.AbstractInternalLogger
- All Implemented Interfaces:
InternalLogger
- Direct Known Subclasses:
CommonsLogger, JBossLogger, JdkLogger, Log4JLogger, OsgiLogger, Slf4JLogger
A skeletal implementation of
InternalLogger. This class implements
all methods that have a InternalLogLevel parameter by default to call
specific logger methods such as InternalLogger.info(String) or InternalLogger.isInfoEnabled().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnabled(InternalLogLevel level) Returnstrueif the specified log level message is logged.voidlog(InternalLogLevel level, String msg) Logs a message.voidlog(InternalLogLevel level, String msg, Throwable cause) Logs a message.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InternalLogger
debug, debug, error, error, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, warn, warn
-
Constructor Details
-
AbstractInternalLogger
protected AbstractInternalLogger()Creates a new instance.
-
-
Method Details
-
isEnabled
Description copied from interface:InternalLoggerReturnstrueif the specified log level message is logged.- Specified by:
isEnabledin interfaceInternalLogger
-
log
Description copied from interface:InternalLoggerLogs a message.- Specified by:
login interfaceInternalLogger
-
log
Description copied from interface:InternalLoggerLogs a message.- Specified by:
login interfaceInternalLogger
-