public interface AsyncLoggerConfigDelegate
Modifier and Type | Method and Description |
---|---|
RingBufferAdmin |
createRingBufferAdmin(java.lang.String contextName,
java.lang.String loggerConfigName)
Creates and returns a new
RingBufferAdmin that instruments the ringbuffer of this
AsyncLoggerConfig . |
void |
enqueueEvent(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
EventRoute |
getEventRoute(Level level)
Returns the
EventRoute for the event with the specified level. |
void |
setLogEventFactory(LogEventFactory logEventFactory)
Notifies the delegate what LogEventFactory an AsyncLoggerConfig is using, so the delegate can determine
whether to populate the ring buffer with mutable log events or not.
|
boolean |
tryEnqueue(LogEvent event,
AsyncLoggerConfig asyncLoggerConfig) |
RingBufferAdmin createRingBufferAdmin(java.lang.String contextName, java.lang.String loggerConfigName)
RingBufferAdmin
that instruments the ringbuffer of this
AsyncLoggerConfig
.contextName
- name of the LoggerContext
loggerConfigName
- name of the logger configEventRoute getEventRoute(Level level)
EventRoute
for the event with the specified level.level
- the level of the event to logEventRoute
void enqueueEvent(LogEvent event, AsyncLoggerConfig asyncLoggerConfig)
boolean tryEnqueue(LogEvent event, AsyncLoggerConfig asyncLoggerConfig)
void setLogEventFactory(LogEventFactory logEventFactory)
logEventFactory
- the factory used