Package com.databricks.jdbc.log
Class JdbcLoggerFactory
- java.lang.Object
-
- com.databricks.jdbc.log.JdbcLoggerFactory
-
public class JdbcLoggerFactory extends Object
Factory class for creating JDBC logger instances. This class supports creating loggers based on the specified logger implementation. The logger implementation can be specified through a system property "com.databricks.jdbc.loggerImpl". Supported logger implementations include SLF4J and JDK logging.
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOGGER_IMPL_PROPERTY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JdbcLoggergetLogger(Class<?> clazz)Returns aJdbcLoggerinstance for the specified class.static JdbcLoggergetLogger(String name)Returns aJdbcLoggerinstance for the specified name.
-
-
-
Field Detail
-
LOGGER_IMPL_PROPERTY
public static final String LOGGER_IMPL_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLogger
public static JdbcLogger getLogger(Class<?> clazz)
Returns aJdbcLoggerinstance for the specified class.
-
getLogger
public static JdbcLogger getLogger(String name)
Returns aJdbcLoggerinstance for the specified name.
-
-