Package com.clickhouse.client.logging
Class JdkLogger
- java.lang.Object
-
- com.clickhouse.client.logging.JdkLogger
-
-
Method Summary
All Methods Instance Methods Concrete 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.protected voidlog(Level level, LogMessage msg)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.
-
-
-
Constructor Detail
-
JdkLogger
public JdkLogger(Logger logger)
Default constructor.- Parameters:
logger- non-null JDK logger
-
-
Method Detail
-
log
protected void log(Level level, LogMessage msg)
-
debug
public void debug(Supplier<?> function)
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
public void debug(Object format, Object... arguments)
Description copied from interface:LoggerLogs a message at the DEBUG level according to the specified format and arguments.
-
debug
public void debug(Object message, Throwable t)
Description copied from interface:LoggerLogs an error (seeThrowable) at the DEBUG level with an accompanying message.
-
error
public void error(Supplier<?> function)
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
public void error(Object format, Object... arguments)
Description copied from interface:LoggerLogs a message at the ERROR level according to the specified format and arguments.
-
error
public void error(Object message, Throwable t)
Description copied from interface:LoggerLogs an error (seeThrowable) at the ERROR level with an accompanying message.
-
info
public void info(Supplier<?> function)
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
public void info(Object format, Object... arguments)
Description copied from interface:LoggerLogs a message at the INFO level according to the specified format and arguments.
-
info
public void info(Object message, Throwable t)
Description copied from interface:LoggerLogs an error (seeThrowable) at the INFO level with an accompanying message.
-
trace
public void trace(Supplier<?> function)
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
public void trace(Object format, Object... arguments)
Description copied from interface:LoggerLogs a message at the TRACE level according to the specified format and arguments.
-
trace
public void trace(Object message, Throwable t)
Description copied from interface:LoggerLogs an error (seeThrowable) at the TRACE level with an accompanying message.
-
warn
public void warn(Supplier<?> function)
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
public void warn(Object format, Object... arguments)
Description copied from interface:LoggerLogs a message at the WARN level according to the specified format and arguments.
-
warn
public void warn(Object message, Throwable t)
Description copied from interface:LoggerLogs an error (seeThrowable) at the WRAN level with an accompanying message.
-
-