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