Package com.clickhouse.logging
Interface Logger
- All Known Implementing Classes:
JdkLogger,Slf4jLogger
public interface Logger
Unified logger. Pay attention that the
format follows standard
Formatter.-
Field Summary
Fields -
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.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.
-
Field Details
-
ERROR_NULL_LOGGER
Error message for providing null logger.- See Also:
-
-
Method Details
-
isDebugEnabled
boolean isDebugEnabled()Checks if logging level isDEBUGor above.- Returns:
- true if DEBUG level is enabled; false otherwise
-
isErrorEnabled
boolean isErrorEnabled()Checks if logging level isERRORor above.- Returns:
- true if ERROR level is enabled; false otherwise
-
isInfoEnabled
boolean isInfoEnabled()Checks if logging level isINFOor above.- Returns:
- true if INFO level is enabled; false otherwise
-
isWarnEnabled
boolean isWarnEnabled()Checks if logging level isWARNor above.- Returns:
- true if WARN level is enabled; false otherwise
-
isTraceEnabled
boolean isTraceEnabled()Checks if logging level isTRACEor above.- Returns:
- true if TRACE level is enabled; false otherwise
-
debug
Logs output of a custom function at the DEBUG level. The function will only run when log level is DEBUG or lower.- Parameters:
function- custom function to run
-
debug
Logs a message at the DEBUG level according to the specified format and arguments.- Parameters:
format- the format stringarguments- a list of arguments, the last one could be aThrowable
-
debug
Logs an error (seeThrowable) at the DEBUG level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
error
Logs output of a custom function at the ERROR level. The function will only run when log level is ERROR or lower.- Parameters:
function- custom function to run
-
error
Logs a message at the ERROR level according to the specified format and arguments.- Parameters:
format- the format stringarguments- a list of arguments, the last one could be aThrowable
-
error
Logs an error (seeThrowable) at the ERROR level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
info
Logs output of a custom function at the INFO level. The function will only run when log level is INFO or lower.- Parameters:
function- custom function to run
-
info
Logs a message at the INFO level according to the specified format and arguments.- Parameters:
format- the format stringarguments- a list of arguments, the last one could be aThrowable
-
info
Logs an error (seeThrowable) at the INFO level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
trace
Logs output of a custom function at the TRACE level. The function will only run when log level is TRACE.- Parameters:
function- custom function to run
-
trace
Logs a message at the TRACE level according to the specified format and arguments.- Parameters:
format- the format stringarguments- a list of arguments, the last one could be aThrowable
-
trace
Logs an error (seeThrowable) at the TRACE level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
warn
Logs output of a custom function at the WARN level. The function will only run when log level is WARN or lower.- Parameters:
function- custom function to run
-
warn
Logs a message at the WARN level according to the specified format and arguments.- Parameters:
format- the format stringarguments- a list of arguments, the last one could be aThrowable
-
warn
Logs an error (seeThrowable) at the WRAN level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
unwrap
Object unwrap()Return logger implementation.- Returns:
- implementation
-