Class HelixLogger
java.lang.Object
com.helixframework.logging.logback.HelixLogger
- All Implemented Interfaces:
org.slf4j.Logger
HelixLogger is a decorator class that implements the Logger interface.
It delegates the logging operations to the underlying logger instance provided during initialization.
This allows for additional functionality to be added to the logger operations.
-
Field Summary
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidLog an exception (throwable) at the DEBUG level.voidvoidvoidvoidvoidvoidLog an exception (throwable) at the DEBUG level.voidvoidvoidvoidvoidvoidLog an exception (throwable) at the ERROR level.voidvoidvoidvoidvoidvoidLog an exception (throwable) at the ERROR level.getName()voidvoidvoidvoidvoidvoidLog an exception (throwable) at the INFO level.voidvoidvoidvoidvoidvoidLog an exception (throwable) at the INFO level.booleanbooleanisDebugEnabled(org.slf4j.Marker marker) booleanbooleanisErrorEnabled(org.slf4j.Marker marker) booleanbooleanisInfoEnabled(org.slf4j.Marker marker) booleanbooleanisTraceEnabled(org.slf4j.Marker marker) booleanbooleanisWarnEnabled(org.slf4j.Marker marker) voidvoidvoidvoidvoidvoidLog an exception (throwable) at the TRACE level.voidvoidvoidvoidvoidvoidLog an exception (throwable) at the TRACE level.voidvoidvoidvoidvoidvoidLog an exception (throwable) at the WARN level.voidvoidvoidvoidvoidvoidLog an exception (throwable) at the WARN level.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.Logger
atDebug, atError, atInfo, atLevel, atTrace, atWarn, isEnabledForLevel, makeLoggingEventBuilder
-
Constructor Details
-
HelixLogger
public HelixLogger(org.slf4j.Logger logger)
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.slf4j.Logger
-
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabledin interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
Log an exception (throwable) at the TRACE level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
throwable- the exception (throwable) to log
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker) - Specified by:
isTraceEnabledin interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
trace
Log an exception (throwable) at the TRACE level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
marker- The marker data to take into considerationthrowable- the exception (throwable) to log
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
Log an exception (throwable) at the DEBUG level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
throwable- the exception (throwable) to log
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker) - Specified by:
isDebugEnabledin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
debug
Log an exception (throwable) at the DEBUG level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
marker- The marker data to take into considerationthrowable- the exception (throwable) to log
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
Log an exception (throwable) at the INFO level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
throwable- the exception (throwable) to log
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker) - Specified by:
isInfoEnabledin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
info
Log an exception (throwable) at the INFO level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
marker- The marker data to take into considerationthrowable- the exception (throwable) to log
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
Log an exception (throwable) at the WARN level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
throwable- the exception (throwable) to log
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker) - Specified by:
isWarnEnabledin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
Log an exception (throwable) at the WARN level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
marker- The marker data to take into considerationthrowable- the exception (throwable) to log
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
Log an exception (throwable) at the ERROR level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
throwable- the exception (throwable) to log
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker) - Specified by:
isErrorEnabledin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
error
Log an exception (throwable) at the ERROR level. If the throwable is annotated withHelixExceptionthe message and code will be taken from there; otherwise from the throwable message.- Parameters:
marker- The marker data to take into considerationthrowable- the exception (throwable) to log
-