Class Log4JLogConsumerService
- java.lang.Object
-
- com.atlassian.confluence.impl.logging.log4j.sink.Log4JLogConsumerService
-
- All Implemented Interfaces:
LogConsumerService
public final class Log4JLogConsumerService extends Object implements LogConsumerService
An implementation ofLogConsumerService
backed by the Log4j 2.x runtime.It registers a custom appender with Log4j which dispatches log events to registered consumers
- Since:
- 8.0
- See Also:
LogConsumerServiceAppender
-
-
Constructor Summary
Constructors Constructor Description Log4JLogConsumerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerLogConsumer(String key, Consumer<LogEvent> consumer)
void
unregisterLogConsumer(String key)
-
-
-
Method Detail
-
registerLogConsumer
public void registerLogConsumer(String key, Consumer<LogEvent> consumer)
Description copied from interface:LogConsumerService
- Specified by:
registerLogConsumer
in interfaceLogConsumerService
-
unregisterLogConsumer
public void unregisterLogConsumer(String key)
Description copied from interface:LogConsumerService
- Specified by:
unregisterLogConsumer
in interfaceLogConsumerService
-
-