java.lang.Object
org.seppiko.glf.api.LoggerFactory
The
LoggerFactory is a utility class producing Loggers for various logging APIs.
Other implementations such as NOPLogger and SimpleLogger are also supported.- Author:
- Leonard Woo
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggerReturn a logger named corresponding to the class passed as parameter, using the statically boundILoggerFactoryinstance.static LoggerReturn a logger named according to the name parameter using the statically boundILoggerFactoryinstance.static ILoggerFactoryReturn theILoggerFactoryinstance in use.
-
Method Details
-
getLogger
Return a logger named according to the name parameter using the statically boundILoggerFactoryinstance.- Parameters:
name- The name of the logger.- Returns:
- the Logger instance.
-
getLogger
Return a logger named corresponding to the class passed as parameter, using the statically boundILoggerFactoryinstance.- Parameters:
clazz- the returned logger will be named after clazz.- Returns:
- the Logger instance.
-
getLoggerFactory
Return theILoggerFactoryinstance in use.ILoggerFactory instance is bound with this class at compile time.
- Returns:
- the ILoggerFactory instance in use.
-