Package com.clickhouse.client.logging
Class LoggerFactory
- java.lang.Object
-
- com.clickhouse.client.logging.LoggerFactory
-
- Direct Known Subclasses:
JdkLoggerFactory
,Slf4jLoggerFactory
public abstract class LoggerFactory extends Object
Unified factory class to get logger.
-
-
Constructor Summary
Constructors Constructor Description LoggerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Logger
get(Class<?> clazz)
Gets logger for the given class.abstract Logger
get(String name)
Gets logger for the given name.static LoggerFactory
getInstance()
Gets instance of the factory for creating logger.static Logger
getLogger(Class<?> clazz)
Gets logger for the given class.static Logger
getLogger(String name)
Gets logger for the given name.
-
-
-
Method Detail
-
getLogger
public static Logger getLogger(Class<?> clazz)
Gets logger for the given class. Same asgetInstance().get(clazz)
.- Parameters:
clazz
- class- Returns:
- logger for the given class
-
getLogger
public static Logger getLogger(String name)
Gets logger for the given name. Same asgetInstance().get(name)
.- Parameters:
name
- name- Returns:
- logger for the given name
-
getInstance
public static LoggerFactory getInstance()
Gets instance of the factory for creating logger.- Returns:
- factory for creating logger
-
get
public Logger get(Class<?> clazz)
Gets logger for the given class.- Parameters:
clazz
- class- Returns:
- logger for the given class
-
-