Class Log
java.lang.Object
de.hybris.platform.dataimportcommons.log.Log
- All Implemented Interfaces:
SafeLogger,org.slf4j.Logger
A logger that acts as a proxy to a real logger retrieved by calling
LoggerFactory.getLogger(Class), which
enforces logging rules and limitations in a standard way that is applicable to all data import projects.-
Field Summary
Fields inherited from interface org.slf4j.Logger
ROOT_LOGGER_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoiddebugSafely(String s, Object... objects) Logs debug message by encoding any special character in the argumentvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoiderrorSafely(String s, Object... objects) Logs error message by encoding any special character in the argumentstatic LogCreates a logger for the specified class.getName()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidinfoSafely(String s, Object... objects) Logs info message by encoding any special character in the argumentbooleanbooleanisDebugEnabled(org.slf4j.Marker marker) booleanbooleanisErrorEnabled(org.slf4j.Marker marker) booleanbooleanisInfoEnabled(org.slf4j.Marker marker) booleanbooleanisTraceEnabled(org.slf4j.Marker marker) booleanbooleanisWarnEnabled(org.slf4j.Marker marker) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtraceSafely(String s, Object... objects) Logs trace message by encoding any special character in the argumentvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidwarnSafely(String s, Object... objects) Logs warn message by encoding any special character in the argument
-
Method Details
-
getLogger
Creates a logger for the specified class.- Parameters:
cl- a class used as a unique name of the logger.- Returns:
- a new logger instance to be used by a class instance.
- See Also:
-
LoggerFactory.getLogger(Class)Logger.getName()
-
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
-
traceSafely
Description copied from interface:SafeLoggerLogs trace message by encoding any special character in the argument- Specified by:
traceSafelyin interfaceSafeLogger- Parameters:
s- log messageobjects- vulnerable log arugments
-
trace
- Specified by:
tracein interfaceorg.slf4j.Logger
-
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
-
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
-
debugSafely
Description copied from interface:SafeLoggerLogs debug message by encoding any special character in the argument- Specified by:
debugSafelyin interfaceSafeLogger- Parameters:
s- log messageobjects- vulnerable log arugments
-
debug
- Specified by:
debugin interfaceorg.slf4j.Logger
-
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
-
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
-
infoSafely
Description copied from interface:SafeLoggerLogs info message by encoding any special character in the argument- Specified by:
infoSafelyin interfaceSafeLogger- Parameters:
s- log messageobjects- vulnerable log arugments
-
info
- Specified by:
infoin interfaceorg.slf4j.Logger
-
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
-
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
-
warnSafely
Description copied from interface:SafeLoggerLogs warn message by encoding any special character in the argument- Specified by:
warnSafelyin interfaceSafeLogger- Parameters:
s- log messageobjects- vulnerable log arugments
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
warn
- Specified by:
warnin interfaceorg.slf4j.Logger
-
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
-
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
-
errorSafely
Description copied from interface:SafeLoggerLogs error message by encoding any special character in the argument- Specified by:
errorSafelyin interfaceSafeLogger- Parameters:
s- log messageobjects- vulnerable log arugments
-
error
- Specified by:
errorin interfaceorg.slf4j.Logger
-
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
-