public class LoggingConfigListener
extends org.springframework.web.util.Log4jConfigListener
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_TOPIC_LOGGING |
static String |
EVENT_TYPE_LOGGING_CONFIG_CHANGED |
| Constructor and Description |
|---|
LoggingConfigListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
static Hashtable<String,Object> |
getConfig() |
static String |
getRootLoggerLevel()
Returns the logging level of the root logger.
|
protected void |
initLogDir(javax.servlet.ServletContext servletContext) |
static void |
setLoggerLevel(String logger,
String level)
Changes the level for the specified logger.
|
public static final String EVENT_TOPIC_LOGGING
public static final String EVENT_TYPE_LOGGING_CONFIG_CHANGED
public static String getRootLoggerLevel()
public static void setLoggerLevel(String logger, String level)
logger - the name of the logger to change the level forlevel - the logging level valuepublic void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenercontextInitialized in class org.springframework.web.util.Log4jConfigListenerprotected void initLogDir(javax.servlet.ServletContext servletContext)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.