public interface LoggingManagement
Modifier and Type | Field and Description |
---|---|
static List<String> |
COMPOSITE_ITEM_DESCRIPTIONS |
static List<String> |
COMPOSITE_ITEM_NAMES |
static String |
LOGGER_LEVEL |
static String |
LOGGER_NAME |
static List<String> |
TABULAR_UNIQUE_INDEX |
static String |
TYPE |
Modifier and Type | Method and Description |
---|---|
String[] |
getAvailableLoggerLevels()
Attribute to represent the available log4j logger output levels.
|
String |
getConfigFileRootLoggerLevel()
Attribute to represent the level of the Log4J RootLogger within the xml configuration file
|
Integer |
getLog4jLogWatchInterval()
Attribute to represent the log4j xml configuration file's LogWatch interval.
|
String |
getRuntimeRootLoggerLevel()
Attribute to represent the level of the active Log4J RootLogger
|
void |
reloadConfigFile()
Reloads the log4j configuration file, applying any changes made.
|
boolean |
setConfigFileLoggerLevel(String logger,
String level)
Updates the level of an existing Log4J logger within the xml configuration file
|
boolean |
setConfigFileRootLoggerLevel(String level)
Updates the level of the Log4J RootLogger within the xml configuration file if it is present
|
boolean |
setRuntimeLoggerLevel(String logger,
String level)
Sets the level of an active Log4J logger
|
boolean |
setRuntimeRootLoggerLevel(String level)
Sets the level of the active Log4J RootLogger
|
TabularData |
viewConfigFileLoggerLevels()
Retrieves a TabularData set of the existing Log4J loggers within the xml configuration file
|
TabularData |
viewEffectiveRuntimeLoggerLevels()
Retrieves a TabularData set of the active log4j loggers and their levels
|
static final String TYPE
static final String LOGGER_NAME
static final String LOGGER_LEVEL
Integer getLog4jLogWatchInterval()
String[] getAvailableLoggerLevels()
boolean setRuntimeLoggerLevel(String logger, String level)
logger
- The name of the loggerlevel
- The level to set the logger toTabularData viewEffectiveRuntimeLoggerLevels()
boolean setRuntimeRootLoggerLevel(String level)
level
- The level to set the RootLogger toString getRuntimeRootLoggerLevel()
void reloadConfigFile() throws IOException
IOException
boolean setConfigFileLoggerLevel(String logger, String level) throws IOException
logger
- The name of the loggerlevel
- The level to set the logger toIOException
- if there is an error parsing the configuration file.TabularData viewConfigFileLoggerLevels() throws IOException
IOException
- if there is an error parsing the configuration file.boolean setConfigFileRootLoggerLevel(String level) throws IOException
level
- The level to set the logger toIOException
- if there is an error parsing the configuration file.String getConfigFileRootLoggerLevel() throws IOException
IOException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.