Package com.clickhouse.logging
Class JdkLogger
java.lang.Object
com.clickhouse.logging.JdkLogger
- All Implemented Interfaces:
Logger
Adaptor for JDK logger.
-
Field Summary
Fields inherited from interface com.clickhouse.logging.Logger
ERROR_NULL_LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a message at the DEBUG level according to the specified format and arguments.voidLogs an error (seeThrowable) at the DEBUG level with an accompanying message.voidLogs output of a custom function at the DEBUG level.voidLogs a message at the ERROR level according to the specified format and arguments.voidLogs an error (seeThrowable) at the ERROR level with an accompanying message.voidLogs output of a custom function at the ERROR level.voidLogs a message at the INFO level according to the specified format and arguments.voidLogs an error (seeThrowable) at the INFO level with an accompanying message.voidLogs output of a custom function at the INFO level.booleanChecks if logging level isDEBUGor above.booleanChecks if logging level isERRORor above.booleanChecks if logging level isINFOor above.booleanChecks if logging level isTRACEor above.booleanChecks if logging level isWARNor above.protected voidlog(Level level, LogMessage msg) voidLogs a message at the TRACE level according to the specified format and arguments.voidLogs an error (seeThrowable) at the TRACE level with an accompanying message.voidLogs output of a custom function at the TRACE level.unwrap()Return logger implementation.voidLogs a message at the WARN level according to the specified format and arguments.voidLogs an error (seeThrowable) at the WRAN level with an accompanying message.voidLogs output of a custom function at the WARN level.
-
Constructor Details
-
JdkLogger
Default constructor.- Parameters:
logger- non-null JDK logger
-
-
Method Details
-
log
-
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:LoggerChecks if logging level isDEBUGor above.- Specified by:
isDebugEnabledin interfaceLogger- Returns:
- true if DEBUG level is enabled; false otherwise
-
isErrorEnabled
public boolean isErrorEnabled()Description copied from interface:LoggerChecks if logging level isERRORor above.- Specified by:
isErrorEnabledin interfaceLogger- Returns:
- true if ERROR level is enabled; false otherwise
-
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:LoggerChecks if logging level isINFOor above.- Specified by:
isInfoEnabledin interfaceLogger- Returns:
- true if INFO level is enabled; false otherwise
-
isWarnEnabled
public boolean isWarnEnabled()Description copied from interface:LoggerChecks if logging level isWARNor above.- Specified by:
isWarnEnabledin interfaceLogger- Returns:
- true if WARN level is enabled; false otherwise
-
isTraceEnabled
public boolean isTraceEnabled()Description copied from interface:LoggerChecks if logging level isTRACEor above.- Specified by:
isTraceEnabledin interfaceLogger- Returns:
- true if TRACE level is enabled; false otherwise
-
debug
Description copied from interface:LoggerLogs output of a custom function at the DEBUG level. The function will only run when log level is DEBUG or lower. -
debug
Description copied from interface:LoggerLogs a message at the DEBUG level according to the specified format and arguments. -
debug
Description copied from interface:LoggerLogs an error (seeThrowable) at the DEBUG level with an accompanying message. -
error
Description copied from interface:LoggerLogs output of a custom function at the ERROR level. The function will only run when log level is ERROR or lower. -
error
Description copied from interface:LoggerLogs a message at the ERROR level according to the specified format and arguments. -
error
Description copied from interface:LoggerLogs an error (seeThrowable) at the ERROR level with an accompanying message. -
info
Description copied from interface:LoggerLogs output of a custom function at the INFO level. The function will only run when log level is INFO or lower. -
info
Description copied from interface:LoggerLogs a message at the INFO level according to the specified format and arguments. -
info
Description copied from interface:LoggerLogs an error (seeThrowable) at the INFO level with an accompanying message. -
trace
Description copied from interface:LoggerLogs output of a custom function at the TRACE level. The function will only run when log level is TRACE. -
trace
Description copied from interface:LoggerLogs a message at the TRACE level according to the specified format and arguments. -
trace
Description copied from interface:LoggerLogs an error (seeThrowable) at the TRACE level with an accompanying message. -
warn
Description copied from interface:LoggerLogs output of a custom function at the WARN level. The function will only run when log level is WARN or lower. -
warn
Description copied from interface:LoggerLogs a message at the WARN level according to the specified format and arguments. -
warn
Description copied from interface:LoggerLogs an error (seeThrowable) at the WRAN level with an accompanying message. -
unwrap
Description copied from interface:LoggerReturn logger implementation.
-