public class LogbackConfiguration extends AbstractLogConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
LOGGING_DIR_PROPERTY |
ADMIN_EVENT_LOG_FILE, ADMIN_EVENT_LOGGER_NAME, LOG_FILE, LOGGING_DIR, USER_EVENT_LOG_FILE, USER_EVENT_LOGGER_NAME
DEFAULT_RESOURCES_LOCATION, DIR, RESOURCES_LOCATION
Constructor and Description |
---|
LogbackConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Clean up configuration resources.
|
LogReader |
getDefaultLogReader()
Default (fallback) LogReader instance.
|
LogReader |
getLogReader(String appender)
A reader that can read logging information as stored by the specific logger's appender.
|
void |
init()
Initialize the configuration settings.
|
void |
load()
Load the configuration settings.
|
void |
save()
Store configuration settings.
|
getAppConfiguration, getBaseDir, getConfDir, getLoggingDir, getPackages, isDebugLoggingEnabled, setAppConfiguration, setBaseDir, setDebugLoggingEnabled
public static final String LOGGING_DIR_PROPERTY
public LogbackConfiguration() throws IOException
IOException
public void init() throws IOException
Configuration
IOException
- if the configuration settings could not be initialized because of an I/O problem.public void load() throws IOException
Configuration
IOException
- if the configuration settings could not be loaded due to an I/O problem.public void save() throws IOException
Configuration
IOException
- if the configuration settings could not be saved due to an I/O problem.public void destroy()
Configuration
public LogReader getLogReader(String appender)
LogConfiguration
appender
- Name of the appender to which the LogReader is attachedpublic LogReader getDefaultLogReader()
LogConfiguration
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.