Interface LogConfiguration
- All Superinterfaces:
Configuration
- All Known Implementing Classes:
AbstractLogConfiguration
,LogbackConfiguration
,LogConfigurationBase
Configuration settings for application logging.
- Author:
- Herko ter Horst
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.eclipse.rdf4j.common.app.config.Configuration
DEFAULT_RESOURCES_LOCATION, DIR, RESOURCES_LOCATION
-
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.Default (fallback) LogReader instance.The location on the file system where logging data is stored.getLogReader
(String appender) A reader that can read logging information as stored by the specific logger's appender.boolean
Is debug logging enabled?void
setAppConfiguration
(AppConfiguration config) Set application configurationvoid
setBaseDir
(File baseDir) Set the base location on the file system for logging configuration and datavoid
setDebugLoggingEnabled
(boolean enabled) Enable or disable debug logging.Methods inherited from interface org.eclipse.rdf4j.common.app.config.Configuration
destroy, init, load, save
-
Field Details
-
LOGGING_DIR
- See Also:
-
LOG_FILE
- See Also:
-
USER_EVENT_LOG_FILE
- See Also:
-
ADMIN_EVENT_LOG_FILE
- See Also:
-
USER_EVENT_LOGGER_NAME
- See Also:
-
ADMIN_EVENT_LOGGER_NAME
- See Also:
-
-
Method Details
-
setBaseDir
Set the base location on the file system for logging configuration and data- Parameters:
baseDir
- the base location on the file system for logging configuration and data- Throws:
IOException
-
getBaseDir
File getBaseDir()The base location on the file system for logging configuration and data- Returns:
- the base location on the file system for logging configuration and data
-
getConfDir
File getConfDir()The location on the file system where logging configuration is stored.- Returns:
- the location on the file system where logging configuration is stored
-
getLoggingDir
File getLoggingDir()The location on the file system where logging data is stored.- Returns:
- the location on the file system where logging data is stored
-
getLogReader
A 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
LogReader getDefaultLogReader()Default (fallback) LogReader instance.- Returns:
- default (fallback) LogReader instance.
-
isDebugLoggingEnabled
boolean isDebugLoggingEnabled()Is debug logging enabled?- Returns:
- true if debug logging is enabled, false otherwise
-
setDebugLoggingEnabled
void setDebugLoggingEnabled(boolean enabled) Enable or disable debug logging.- Parameters:
enabled
- set to true if debug logging should be enabled, set to false otherwise
-
setAppConfiguration
Set application configuration- Parameters:
config
- application configuration
-
getAppConfiguration
AppConfiguration getAppConfiguration()Get application configuration- Returns:
- application configuration
-