public class LogbackAccessContext
extends ch.qos.logback.access.spi.AccessContext
| Constructor and Description |
|---|
LogbackAccessContext(LogbackAccessProperties logbackAccessProperties,
org.springframework.core.env.Environment environment,
org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure()
Configures by the configuration files.
|
void |
emit(AbstractLogbackAccessEvent event)
Emits the Logback-access event.
|
addAppender, addFilter, callAppenders, clearAllFilters, detachAndStopAllAppenders, detachAppender, detachAppender, getAppender, getCopyOfAttachedFiltersList, getFilterChainDecision, isAttached, iteratorForAppendersaddScheduledFuture, getBirthTime, getConfigurationLock, getCopyOfPropertyMap, getExecutorService, getName, getObject, getProperty, getScheduledExecutorService, getScheduledFutures, getStatusManager, initCollisionMaps, isStarted, putObject, putProperty, register, removeObject, reset, setName, setStatusManager, start, stop, toStringpublic LogbackAccessContext(LogbackAccessProperties logbackAccessProperties, org.springframework.core.env.Environment environment, org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
logbackAccessProperties - the configuration properties for Logback-access.environment - the environment.applicationEventPublisher - the application event publisher.public void configure()
throws LogbackAccessConfigurationException
LogbackAccessConfigurationException.
If configuration file is absent, applies the fallback configuration (FALLBACK_CONFIG).LogbackAccessConfigurationException - if an exception occurs.public void emit(AbstractLogbackAccessEvent event)
event - the Logback-access event.Copyright © 2017 rakugakibox.net. All rights reserved.