Interface LogConfiguration
-
- All Superinterfaces:
Configuration
- All Known Implementing Classes:
AbstractLogConfiguration,LogbackConfiguration,LogConfigurationBase
public interface LogConfiguration extends Configuration
Configuration settings for application logging.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADMIN_EVENT_LOG_FILEstatic java.lang.StringADMIN_EVENT_LOGGER_NAMEstatic java.lang.StringLOG_FILEstatic java.lang.StringLOGGING_DIRstatic java.lang.StringUSER_EVENT_LOG_FILEstatic java.lang.StringUSER_EVENT_LOGGER_NAME-
Fields inherited from interface org.eclipse.rdf4j.common.app.config.Configuration
DEFAULT_RESOURCES_LOCATION, DIR, RESOURCES_LOCATION
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AppConfigurationgetAppConfiguration()Get application configurationjava.io.FilegetBaseDir()The base location on the file system for logging configuration and datajava.io.FilegetConfDir()The location on the file system where logging configuration is stored.LogReadergetDefaultLogReader()Default (fallback) LogReader instance.java.io.FilegetLoggingDir()The location on the file system where logging data is stored.LogReadergetLogReader(java.lang.String appender)A reader that can read logging information as stored by the specific logger's appender.booleanisDebugLoggingEnabled()Is debug logging enabled?voidsetAppConfiguration(AppConfiguration config)Set application configurationvoidsetBaseDir(java.io.File baseDir)Set the base location on the file system for logging configuration and datavoidsetDebugLoggingEnabled(boolean enabled)Enable or disable debug logging.-
Methods inherited from interface org.eclipse.rdf4j.common.app.config.Configuration
destroy, init, load, save
-
-
-
-
Field Detail
-
LOGGING_DIR
static final java.lang.String LOGGING_DIR
- See Also:
- Constant Field Values
-
LOG_FILE
static final java.lang.String LOG_FILE
- See Also:
- Constant Field Values
-
USER_EVENT_LOG_FILE
static final java.lang.String USER_EVENT_LOG_FILE
- See Also:
- Constant Field Values
-
ADMIN_EVENT_LOG_FILE
static final java.lang.String ADMIN_EVENT_LOG_FILE
- See Also:
- Constant Field Values
-
USER_EVENT_LOGGER_NAME
static final java.lang.String USER_EVENT_LOGGER_NAME
- See Also:
- Constant Field Values
-
ADMIN_EVENT_LOGGER_NAME
static final java.lang.String ADMIN_EVENT_LOGGER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setBaseDir
void setBaseDir(java.io.File baseDir) throws java.io.IOExceptionSet 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:
java.io.IOException
-
getBaseDir
java.io.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
java.io.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
java.io.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
LogReader getLogReader(java.lang.String appender)
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
void setAppConfiguration(AppConfiguration config)
Set application configuration- Parameters:
config- application configuration
-
getAppConfiguration
AppConfiguration getAppConfiguration()
Get application configuration- Returns:
- application configuration
-
-