Package com.clickhouse.client.logging
Interface Logger
-
- All Known Implementing Classes:
JdkLogger,Slf4jLogger
public interface LoggerUnified logger. Pay attention that theformatfollows standardFormatter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(Object format, Object... arguments)Logs a message at the DEBUG level according to the specified format and arguments.voiddebug(Object message, Throwable t)Logs an error (seeThrowable) at the DEBUG level with an accompanying message.voiddebug(Supplier<?> function)Logs output of a custom function at the DEBUG level.voiderror(Object format, Object... arguments)Logs a message at the ERROR level according to the specified format and arguments.voiderror(Object message, Throwable t)Logs an error (seeThrowable) at the ERROR level with an accompanying message.voiderror(Supplier<?> function)Logs output of a custom function at the ERROR level.voidinfo(Object format, Object... arguments)Logs a message at the INFO level according to the specified format and arguments.voidinfo(Object message, Throwable t)Logs an error (seeThrowable) at the INFO level with an accompanying message.voidinfo(Supplier<?> function)Logs output of a custom function at the INFO level.voidtrace(Object format, Object... arguments)Logs a message at the TRACE level according to the specified format and arguments.voidtrace(Object message, Throwable t)Logs an error (seeThrowable) at the TRACE level with an accompanying message.voidtrace(Supplier<?> function)Logs output of a custom function at the TRACE level.Objectunwrap()Return logger implementation.voidwarn(Object format, Object... arguments)Logs a message at the WARN level according to the specified format and arguments.voidwarn(Object message, Throwable t)Logs an error (seeThrowable) at the WRAN level with an accompanying message.voidwarn(Supplier<?> function)Logs output of a custom function at the WARN level.
-
-
-
Method Detail
-
debug
void debug(Supplier<?> function)
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
void debug(Object format, Object... arguments)
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
void debug(Object message, Throwable t)
Logs an error (seeThrowable) at the DEBUG level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
error
void error(Supplier<?> function)
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
void error(Object format, Object... arguments)
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
void error(Object message, Throwable t)
Logs an error (seeThrowable) at the ERROR level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
info
void info(Supplier<?> function)
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
void info(Object format, Object... arguments)
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
void info(Object message, Throwable t)
Logs an error (seeThrowable) at the INFO level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
trace
void trace(Supplier<?> function)
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
void trace(Object format, Object... arguments)
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
void trace(Object message, Throwable t)
Logs an error (seeThrowable) at the TRACE level with an accompanying message.- Parameters:
message- the message accompanying the errort- the error to log
-
warn
void warn(Supplier<?> function)
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
void warn(Object format, Object... arguments)
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
void warn(Object message, Throwable t)
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
-
-