public abstract class AbstractLogConfiguration extends Object implements LogConfiguration
ADMIN_EVENT_LOG_FILE, ADMIN_EVENT_LOGGER_NAME, LOG_FILE, LOGGING_DIR, USER_EVENT_LOG_FILE, USER_EVENT_LOGGER_NAMEDEFAULT_RESOURCES_LOCATION, DIR, RESOURCES_LOCATION| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLogConfiguration()
Constructor
|
| 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.
|
File |
getLoggingDir()
The location on the file system where logging data is stored.
|
protected Set<String> |
getPackages()
Get packages as a set
|
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 debugLoggingEnabled)
Enable or disable debug logging.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultLogReader, getLogReaderdestroy, init, load, saveprotected AbstractLogConfiguration()
throws IOException
IOExceptionpublic void setBaseDir(File baseDir) throws IOException
LogConfigurationsetBaseDir in interface LogConfigurationbaseDir - the base location on the file system for logging configuration and dataIOExceptionpublic File getBaseDir()
LogConfigurationgetBaseDir in interface LogConfigurationpublic File getConfDir()
LogConfigurationgetConfDir in interface LogConfigurationpublic File getLoggingDir()
LogConfigurationgetLoggingDir in interface LogConfigurationpublic boolean isDebugLoggingEnabled()
LogConfigurationisDebugLoggingEnabled in interface LogConfigurationpublic void setDebugLoggingEnabled(boolean debugLoggingEnabled)
LogConfigurationsetDebugLoggingEnabled in interface LogConfigurationdebugLoggingEnabled - set to true if debug logging should be enabled, set to false otherwiseprotected Set<String> getPackages()
public AppConfiguration getAppConfiguration()
LogConfigurationgetAppConfiguration in interface LogConfigurationpublic void setAppConfiguration(AppConfiguration config)
LogConfigurationsetAppConfiguration in interface LogConfigurationconfig - application configurationCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.