Package com.clickhouse.client.logging
Class Slf4jLogger
- java.lang.Object
-
- com.clickhouse.client.logging.Slf4jLogger
-
-
Constructor Summary
Constructors Constructor Description Slf4jLogger(org.slf4j.Logger logger)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Object format, Object... arguments)
Logs a message at the DEBUG level according to the specified format and arguments.void
debug(Object message, Throwable t)
Logs an error (seeThrowable
) at the DEBUG level with an accompanying message.void
debug(Supplier<?> function)
Logs output of a custom function at the DEBUG level.void
error(Object format, Object... arguments)
Logs a message at the ERROR level according to the specified format and arguments.void
error(Object message, Throwable t)
Logs an error (seeThrowable
) at the ERROR level with an accompanying message.void
error(Supplier<?> function)
Logs output of a custom function at the ERROR level.void
info(Object format, Object... arguments)
Logs a message at the INFO level according to the specified format and arguments.void
info(Object message, Throwable t)
Logs an error (seeThrowable
) at the INFO level with an accompanying message.void
info(Supplier<?> function)
Logs output of a custom function at the INFO level.void
trace(Object format, Object... arguments)
Logs a message at the TRACE level according to the specified format and arguments.void
trace(Object message, Throwable t)
Logs an error (seeThrowable
) at the TRACE level with an accompanying message.void
trace(Supplier<?> function)
Logs output of a custom function at the TRACE level.Object
unwrap()
Return logger implementation.void
warn(Object format, Object... arguments)
Logs a message at the WARN level according to the specified format and arguments.void
warn(Object message, Throwable t)
Logs an error (seeThrowable
) at the WRAN level with an accompanying message.void
warn(Supplier<?> function)
Logs output of a custom function at the WARN level.
-
-
-
Method Detail
-
debug
public void debug(Supplier<?> function)
Description copied from interface:Logger
Logs 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:Logger
Logs 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:Logger
Logs an error (seeThrowable
) at the DEBUG level with an accompanying message.
-
error
public void error(Supplier<?> function)
Description copied from interface:Logger
Logs 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:Logger
Logs 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:Logger
Logs an error (seeThrowable
) at the ERROR level with an accompanying message.
-
info
public void info(Supplier<?> function)
Description copied from interface:Logger
Logs 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:Logger
Logs 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:Logger
Logs an error (seeThrowable
) at the INFO level with an accompanying message.
-
trace
public void trace(Supplier<?> function)
Description copied from interface:Logger
Logs 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:Logger
Logs 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:Logger
Logs an error (seeThrowable
) at the TRACE level with an accompanying message.
-
warn
public void warn(Supplier<?> function)
Description copied from interface:Logger
Logs 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:Logger
Logs 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:Logger
Logs an error (seeThrowable
) at the WRAN level with an accompanying message.
-
-