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_NAME
DEFAULT_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, wait
getDefaultLogReader, getLogReader
destroy, init, load, save
protected AbstractLogConfiguration() throws IOException
IOException
public void setBaseDir(File baseDir) throws IOException
LogConfiguration
setBaseDir
in interface LogConfiguration
baseDir
- the base location on the file system for logging configuration and dataIOException
public File getBaseDir()
LogConfiguration
getBaseDir
in interface LogConfiguration
public File getConfDir()
LogConfiguration
getConfDir
in interface LogConfiguration
public File getLoggingDir()
LogConfiguration
getLoggingDir
in interface LogConfiguration
public boolean isDebugLoggingEnabled()
LogConfiguration
isDebugLoggingEnabled
in interface LogConfiguration
public void setDebugLoggingEnabled(boolean debugLoggingEnabled)
LogConfiguration
setDebugLoggingEnabled
in interface LogConfiguration
debugLoggingEnabled
- set to true if debug logging should be enabled, set to false otherwiseprotected Set<String> getPackages()
public AppConfiguration getAppConfiguration()
LogConfiguration
getAppConfiguration
in interface LogConfiguration
public void setAppConfiguration(AppConfiguration config)
LogConfiguration
setAppConfiguration
in interface LogConfiguration
config
- application configurationCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.