Interface ComponentLoggerProvider.LoggerHelper
- Enclosing interface:
ComponentLoggerProvider
A factory for default implementations of component loggers.
- Since:
- 4.11.0
-
Method Summary
Modifier and TypeMethodDescriptiondelegating(org.slf4j.Logger base, Function<Component, String> serializer) Create a component logger based on one which delegates to an underlying plainLoggerimplementation.Create a serializer function that will translate logged output into the system default locale and then serialize it to plain text.
-
Method Details
-
plainSerializer
-
delegating
Create a component logger based on one which delegates to an underlying plainLoggerimplementation.This sort of logger requires Components to be serialized to some sort of formatted
Stringto match the SLF4J contract.- Parameters:
base- the base loggerserializer- the serializer to translate and format a component in a log message.- Returns:
- a new logger
- Since:
- 4.11.0
-