Class LogbackConfiguration
java.lang.Object
org.eclipse.rdf4j.common.app.logging.base.AbstractLogConfiguration
org.eclipse.rdf4j.common.app.logging.logback.LogbackConfiguration
- All Implemented Interfaces:
Configuration, LogConfiguration
-
Field Summary
FieldsFields inherited from interface Configuration
DEFAULT_RESOURCES_LOCATION, DIR, RESOURCES_LOCATIONFields inherited from interface 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 TypeMethodDescriptionvoiddestroy()Clean up configuration resources.Default (fallback) LogReader instance.getLogReader(String appender) A reader that can read logging information as stored by the specific logger's appender.voidinit()Initialize the configuration settings.voidload()Load the configuration settings.voidsave()Store configuration settings.Methods inherited from class AbstractLogConfiguration
getAppConfiguration, getBaseDir, getConfDir, getLoggingDir, getPackages, isDebugLoggingEnabled, setAppConfiguration, setBaseDir, setDebugLoggingEnabled
-
Field Details
-
LOGGING_DIR_PROPERTY
- See Also:
-
-
Constructor Details
-
LogbackConfiguration
- Throws:
IOException
-
-
Method Details
-
init
Description copied from interface:ConfigurationInitialize the configuration settings.- Throws:
IOException- if the configuration settings could not be initialized because of an I/O problem.
-
load
Description copied from interface:ConfigurationLoad the configuration settings. Settings will be loaded from a user and application specific location first. If no such settings exists, an attempt will be made to retrieve settings from a resource on the classpath. If no such settings exist either, settings will be loaded from a default resource on the classpath.- Throws:
IOException- if the configuration settings could not be loaded due to an I/O problem.
-
save
Description copied from interface:ConfigurationStore configuration settings. Settings will be stored in a user and application specific location.- Throws:
IOException- if the configuration settings could not be saved due to an I/O problem.
-
destroy
public void destroy()Description copied from interface:ConfigurationClean up configuration resources. -
getLogReader
Description copied from interface:LogConfigurationA reader that can read logging information as stored by the specific logger's appender.- Parameters:
appender- Name of the appender to which the LogReader is attached- Returns:
- a reader that can read logging information as stored by the logger configured through this LogConfiguration
-
getDefaultLogReader
Description copied from interface:LogConfigurationDefault (fallback) LogReader instance.- Returns:
- default (fallback) LogReader instance.
-