Package de.xima.fc.logging
Class XLogConfig
java.lang.Object
de.xima.fc.logging.XLogConfig
- All Implemented Interfaces:
ILogConfig
,Serializable
Wrapper model for accessing/modifying logger components of Logger
PropertiesConfiguration
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Pattern
Pattern for checking whether a file name is a backup log file of the formcycle error log.static final String
Prefix for the special log file that contains all errors from the formcycle application.static final String
Appender name for the special log file that contains all errors from the formcycle application. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppender
(IAppender appender) void
createNewAppender
(EAppenderType type, String nameCandidate) static final XLogConfig
forFileConfiguration
(de.xima.cmn.props.FileBasedPropertiesConfiguration fileConfig) Beware!boolean
removeAppender
(String identifier) boolean
removeLogger
(String identifier) void
save()
void
saveAppender
(String identifier) void
void
saveLogger
(String identifier) void
-
Field Details
-
DEFAULT_ERROR_APPENDER_NAME
Appender name for the special log file that contains all errors from the formcycle application.- See Also:
-
DEFAULT_ERROR_APPENDER_FILE_NAME_PATTERN
Pattern for checking whether a file name is a backup log file of the formcycle error log. -
DEFAULT_ERROR_APPENDER_FILE_NAME_PREFIX
Prefix for the special log file that contains all errors from the formcycle application.- See Also:
-
-
Method Details
-
forFileConfiguration
public static final XLogConfig forFileConfiguration(de.xima.cmn.props.FileBasedPropertiesConfiguration fileConfig) Beware! In order to read the configuration details it is necessary to initialize the configuration. This means files of file appenders will be created. Should only be used forXfcConfig.LOGGING
!- Parameters:
fileConfig
- configuration file- Returns:
- logging configuration
-
getAppenders
- Specified by:
getAppenders
in interfaceILogConfig
-
getLoggers
- Specified by:
getLoggers
in interfaceILogConfig
-
getFacesLogger
-
getRootLogger
-
getDefaultErrorLogger
-
getNextAppenderIdentifier
-
getNextLoggerIdentifier
-
save
public void save() throws org.apache.commons.configuration2.ex.ConfigurationException- Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
saveAppenders
public void saveAppenders() throws org.apache.commons.configuration2.ex.ConfigurationException- Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
saveLoggers
public void saveLoggers() throws org.apache.commons.configuration2.ex.ConfigurationException- Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
saveAppender
public void saveAppender(String identifier) throws org.apache.commons.configuration2.ex.ConfigurationException - Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
saveLogger
public void saveLogger(String identifier) throws org.apache.commons.configuration2.ex.ConfigurationException - Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
removeAppender
public boolean removeAppender(String identifier) throws org.apache.commons.configuration2.ex.ConfigurationException - Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
removeLogger
public boolean removeLogger(String identifier) throws org.apache.commons.configuration2.ex.ConfigurationException - Throws:
org.apache.commons.configuration2.ex.ConfigurationException
-
createNewAppender
-
createNewLogger
-
addAppender
-
addLogger
-