@Component public final class CasLoggerContextInitializer extends Object implements org.springframework.web.context.ServletContextAware
| Modifier | Constructor and Description |
|---|---|
protected |
CasLoggerContextInitializer()
Instantiates a new Cas logger context initializer.
|
|
CasLoggerContextInitializer(String loggerContextPackageName,
org.springframework.core.io.Resource logConfigurationFile,
String logConfigurationField)
Instantiates a new Cas logger context initializer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys all logging hooks and shuts down
the logger.
|
void |
setServletContext(javax.servlet.ServletContext servletContext) |
protected CasLoggerContextInitializer()
public CasLoggerContextInitializer(@NotNull
String loggerContextPackageName,
@NotNull
org.springframework.core.io.Resource logConfigurationFile,
@NotNull
String logConfigurationField)
loggerContextPackageName - the logger context package namelogConfigurationFile - the log configuration filelogConfigurationField - the log configuration field@PreDestroy public void destroy()
public void setServletContext(javax.servlet.ServletContext servletContext)
Prepared the logger context with the received servlet web context. Because the context may be initialized twice, there are safety checks added to ensure we don't create duplicate log environments.
setServletContext in interface org.springframework.web.context.ServletContextAwareservletContext - Copyright © 2004-2016 Apereo. All Rights Reserved.