public interface LogConfiguration extends Configuration
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_EVENT_LOG_FILE |
static String |
ADMIN_EVENT_LOGGER_NAME |
static String |
LOG_FILE |
static String |
LOGGING_DIR |
static String |
USER_EVENT_LOG_FILE |
static String |
USER_EVENT_LOGGER_NAME |
DEFAULT_RESOURCES_LOCATION, DIR, RESOURCES_LOCATION
Modifier and Type | Method and Description |
---|---|
AppConfiguration |
getAppConfiguration()
Get application configuration
|
File |
getBaseDir()
The base location on the file system for logging configuration and data
|
File |
getConfDir()
The location on the file system where logging configuration is stored.
|
LogReader |
getDefaultLogReader()
Default (fallback) LogReader instance.
|
File |
getLoggingDir()
The location on the file system where logging data is stored.
|
LogReader |
getLogReader(String appender)
A reader that can read logging information as stored by the specific logger's appender.
|
boolean |
isDebugLoggingEnabled()
Is debug logging enabled?
|
void |
setAppConfiguration(AppConfiguration config)
Set application configuration
|
void |
setBaseDir(File baseDir)
Set the base location on the file system for logging configuration and data
|
void |
setDebugLoggingEnabled(boolean enabled)
Enable or disable debug logging.
|
destroy, init, load, save
static final String LOGGING_DIR
static final String LOG_FILE
static final String USER_EVENT_LOG_FILE
static final String ADMIN_EVENT_LOG_FILE
static final String USER_EVENT_LOGGER_NAME
static final String ADMIN_EVENT_LOGGER_NAME
void setBaseDir(File baseDir) throws IOException
baseDir
- the base location on the file system for logging configuration and dataIOException
File getBaseDir()
File getConfDir()
File getLoggingDir()
LogReader getLogReader(String appender)
appender
- Name of the appender to which the LogReader is attachedLogReader getDefaultLogReader()
boolean isDebugLoggingEnabled()
void setDebugLoggingEnabled(boolean enabled)
enabled
- set to true if debug logging should be enabled, set to false otherwisevoid setAppConfiguration(AppConfiguration config)
config
- application configurationAppConfiguration getAppConfiguration()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.