Class HelixLoggerFactory
java.lang.Object
com.helixframework.logging.logback.HelixLoggerFactory
The `HelixLoggerFactory` class is a factory class that provides methods for retrieving logger instances.
It uses a cache to store and reuse logger instances based on their names or class names.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HelixLoggerRetrieves a logger instance for the specified class.static HelixLoggerRetrieves a logger instance for the specified logger name.
-
Method Details
-
getLogger
Retrieves a logger instance for the specified logger name.- Parameters:
s- The name of the logger- Returns:
- The logger instance
-
getLogger
Retrieves a logger instance for the specified class.- Parameters:
clazz- The class for which to retrieve the logger- Returns:
- The logger instance
-