public final class HazelcastAppender
extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
Logback appender providing support for storing logging events in Hazelcast-backed storage.
It saves the ID (as String) of the node to the Set: logging/list Each logging event is appended to the list: logging/node/ID, where ID is replaced by the actual node ID. The stored objects are LoggingEventVO
instances.
Configuration is done as described in https://github.com/qos-ch/logback-extensions/wiki/Spring. In the logback config ch.qos.logback.ext.spring.DelegatingLogbackAppender
is used, then this appender is loaded in the Spring config.
Modifier and Type | Field and Description |
---|---|
private IList<ch.qos.logback.classic.spi.ILoggingEvent> |
list |
Constructor and Description |
---|
HazelcastAppender(HazelcastInstance hazelcastInstance,
NodeIdentityService identityService) |
Modifier and Type | Method and Description |
---|---|
protected void |
append(ch.qos.logback.classic.spi.ILoggingEvent eventObject) |
addFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
private final IList<ch.qos.logback.classic.spi.ILoggingEvent> list
@Inject public HazelcastAppender(HazelcastInstance hazelcastInstance, NodeIdentityService identityService)