Package com.databricks.jdbc.log
Class Slf4jLogger
- java.lang.Object
-
- com.databricks.jdbc.log.Slf4jLogger
-
- All Implemented Interfaces:
JdbcLogger
public class Slf4jLogger extends Object implements JdbcLogger
TheSlf4jLoggerclass implements theJdbcLoggerinterface, providing an SLF4J-based logging solution.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description Slf4jLogger(Class<?> clazz)Constructs a newSlf4jLoggerobject with the specified class.Slf4jLogger(String name)Constructs a newSlf4jLoggerobject with the specified name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(String message)voiddebug(String format, Object... arguments)voiderror(String message)voiderror(String format, Object... arguments)voiderror(Throwable throwable, String message)voiderror(Throwable throwable, String format, Object... arguments)voidinfo(String message)voidinfo(String format, Object... arguments)voidtrace(String message)voidtrace(String format, Object... arguments)voidwarn(String message)voidwarn(String format, Object... arguments)
-
-
-
Method Detail
-
trace
public void trace(String message)
- Specified by:
tracein interfaceJdbcLogger
-
trace
public void trace(String format, Object... arguments)
- Specified by:
tracein interfaceJdbcLogger
-
debug
public void debug(String message)
- Specified by:
debugin interfaceJdbcLogger
-
debug
public void debug(String format, Object... arguments)
- Specified by:
debugin interfaceJdbcLogger
-
info
public void info(String message)
- Specified by:
infoin interfaceJdbcLogger
-
info
public void info(String format, Object... arguments)
- Specified by:
infoin interfaceJdbcLogger
-
warn
public void warn(String message)
- Specified by:
warnin interfaceJdbcLogger
-
warn
public void warn(String format, Object... arguments)
- Specified by:
warnin interfaceJdbcLogger
-
error
public void error(String message)
- Specified by:
errorin interfaceJdbcLogger
-
error
public void error(String format, Object... arguments)
- Specified by:
errorin interfaceJdbcLogger
-
error
public void error(Throwable throwable, String message)
- Specified by:
errorin interfaceJdbcLogger
-
error
public void error(Throwable throwable, String format, Object... arguments)
- Specified by:
errorin interfaceJdbcLogger
-
-