Class AbstractLogConfiguration
java.lang.Object
org.eclipse.rdf4j.common.app.logging.base.AbstractLogConfiguration
- All Implemented Interfaces:
Configuration,LogConfiguration
- Direct Known Subclasses:
LogbackConfiguration
Base implementation of LogConfiguration.
- Author:
- Herko ter Horst
-
Field Summary
Fields inherited from interface org.eclipse.rdf4j.common.app.config.Configuration
DEFAULT_RESOURCES_LOCATION, DIR, RESOURCES_LOCATIONFields inherited from interface org.eclipse.rdf4j.common.app.logging.LogConfiguration
ADMIN_EVENT_LOG_FILE, ADMIN_EVENT_LOGGER_NAME, LOG_FILE, LOGGING_DIR, USER_EVENT_LOG_FILE, USER_EVENT_LOGGER_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet application configurationThe base location on the file system for logging configuration and dataThe location on the file system where logging configuration is stored.The location on the file system where logging data is stored.Get packages as a setbooleanIs debug logging enabled?voidsetAppConfiguration(AppConfiguration config) Set application configurationvoidsetBaseDir(File baseDir) Set the base location on the file system for logging configuration and datavoidsetDebugLoggingEnabled(boolean debugLoggingEnabled) Enable or disable debug logging.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.common.app.config.Configuration
destroy, init, load, saveMethods inherited from interface org.eclipse.rdf4j.common.app.logging.LogConfiguration
getDefaultLogReader, getLogReader
-
Constructor Details
-
AbstractLogConfiguration
Constructor- Throws:
IOException
-
-
Method Details
-
setBaseDir
Description copied from interface:LogConfigurationSet the base location on the file system for logging configuration and data- Specified by:
setBaseDirin interfaceLogConfiguration- Parameters:
baseDir- the base location on the file system for logging configuration and data- Throws:
IOException
-
getBaseDir
Description copied from interface:LogConfigurationThe base location on the file system for logging configuration and data- Specified by:
getBaseDirin interfaceLogConfiguration- Returns:
- the base location on the file system for logging configuration and data
-
getConfDir
Description copied from interface:LogConfigurationThe location on the file system where logging configuration is stored.- Specified by:
getConfDirin interfaceLogConfiguration- Returns:
- the location on the file system where logging configuration is stored
-
getLoggingDir
Description copied from interface:LogConfigurationThe location on the file system where logging data is stored.- Specified by:
getLoggingDirin interfaceLogConfiguration- Returns:
- the location on the file system where logging data is stored
-
isDebugLoggingEnabled
public boolean isDebugLoggingEnabled()Description copied from interface:LogConfigurationIs debug logging enabled?- Specified by:
isDebugLoggingEnabledin interfaceLogConfiguration- Returns:
- true if debug logging is enabled, false otherwise
-
setDebugLoggingEnabled
public void setDebugLoggingEnabled(boolean debugLoggingEnabled) Description copied from interface:LogConfigurationEnable or disable debug logging.- Specified by:
setDebugLoggingEnabledin interfaceLogConfiguration- Parameters:
debugLoggingEnabled- set to true if debug logging should be enabled, set to false otherwise
-
getPackages
Get packages as a set- Returns:
- packages as set of string
-
getAppConfiguration
Description copied from interface:LogConfigurationGet application configuration- Specified by:
getAppConfigurationin interfaceLogConfiguration- Returns:
- application configuration
-
setAppConfiguration
Description copied from interface:LogConfigurationSet application configuration- Specified by:
setAppConfigurationin interfaceLogConfiguration- Parameters:
config- application configuration
-