public abstract class LogbackWebConfigurer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CONFIG_LOCATION_PARAM
Parameter specifying the location of the logback config file
|
static String |
EXPOSE_WEB_APP_ROOT_PARAM
Parameter specifying whether to expose the web app root system property
|
static String |
REFRESH_INTERVAL_PARAM
Parameter specifying the refresh interval for checking the logback config file
|
| 构造器和说明 |
|---|
LogbackWebConfigurer() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
initLogging(javax.servlet.ServletContext servletContext)
Initialize logback, including setting the web app root system property.
|
static void |
shutdownLogging(javax.servlet.ServletContext servletContext)
Shut down logback, properly releasing all file locks and resetting the web app root system property.
|
public static final String CONFIG_LOCATION_PARAM
public static final String REFRESH_INTERVAL_PARAM
public static void initLogging(javax.servlet.ServletContext servletContext)
servletContext - the current ServletContextWebUtils.setWebAppRootSystemProperty(javax.servlet.ServletContext)public static void shutdownLogging(javax.servlet.ServletContext servletContext)
servletContext - the current ServletContextWebUtils.removeWebAppRootSystemProperty(javax.servlet.ServletContext)Copyright © 2018. All rights reserved.