Package com.clickhouse.logging
Class LoggerFactory
java.lang.Object
com.clickhouse.logging.LoggerFactory
- Direct Known Subclasses:
JdkLoggerFactory,Slf4jLoggerFactory
Unified factory class to get logger.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets logger for the given class.abstract LoggerGets logger for the given name.static LoggerFactoryGets instance of the factory for creating logger.static LoggerGets logger for the given class.static LoggerGets logger for the given name.
-
Constructor Details
-
LoggerFactory
public LoggerFactory()
-
-
Method Details
-
getLogger
Gets logger for the given class. Same asgetInstance().get(clazz).- Parameters:
clazz- class- Returns:
- logger for the given class
-
getLogger
Gets logger for the given name. Same asgetInstance().get(name).- Parameters:
name- name- Returns:
- logger for the given name
-
getInstance
Gets instance of the factory for creating logger.- Returns:
- factory for creating logger
-
get
Gets logger for the given class.- Parameters:
clazz- class- Returns:
- logger for the given class
-
get
Gets logger for the given name.- Parameters:
name- name- Returns:
- logger for the given name
-