Package eu.cloudnetservice.common.log
Interface LoggerFactory
- All Known Implementing Classes:
FallbackLoggerFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory for logger objects.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the root logger used by the system. -
Method Summary
-
Field Details
-
ROOT_LOGGER_NAME
The name of the root logger used by the system. Editing the associated logger will result in all loggers to change.- See Also:
-
-
Method Details
-
logger
Gets or creates a logger with the given name. Overridden methods may but must no cache created logger objects, meaning that this method can also create a new logger each time this method is called.- Parameters:
name- the name of the logger.- Returns:
- the cached or created logger object having the given name.
- Throws:
NullPointerException- if the given name is null.
-