Package de.xima.fc.logging
Class XLogConfig
- java.lang.Object
-
- de.xima.fc.logging.XLogConfig
-
- All Implemented Interfaces:
ILogConfig
,Serializable
public class XLogConfig extends Object implements ILogConfig
Wrapper model for accessing/modifying logger components of LoggerPropertiesConfiguration
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ERROR_APPENDER_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAppender(IAppender appender)
void
addLogger(ILogger logger)
IAppender
createNewAppender(EAppenderType type, String nameCandidate)
ILogger
createNewLogger()
static XLogConfig
forFileConfiguration(org.apache.commons.configuration.FileConfiguration fileConfig)
Beware!List<IAppender>
getAppenders()
IRollingFileAppender
getDefaultErrorLogger()
ILogger
getFacesLogger()
List<ILogger>
getLoggers()
String
getNextAppenderIdentifier()
String
getNextLoggerIdentifier()
ILogger
getRootLogger()
boolean
removeAppender(String identifier)
boolean
removeLogger(String identifier)
void
save()
void
saveAppender(String identifier)
void
saveAppenders()
void
saveLogger(String identifier)
void
saveLoggers()
-
-
-
Field Detail
-
DEFAULT_ERROR_APPENDER_NAME
public static final String DEFAULT_ERROR_APPENDER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
forFileConfiguration
public static final XLogConfig forFileConfiguration(org.apache.commons.configuration.FileConfiguration 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
public List<IAppender> getAppenders()
- Specified by:
getAppenders
in interfaceILogConfig
-
getLoggers
public List<ILogger> getLoggers()
- Specified by:
getLoggers
in interfaceILogConfig
-
getFacesLogger
public ILogger getFacesLogger()
-
getRootLogger
public ILogger getRootLogger()
-
getDefaultErrorLogger
public IRollingFileAppender getDefaultErrorLogger()
-
getNextAppenderIdentifier
public String getNextAppenderIdentifier()
-
getNextLoggerIdentifier
public String getNextLoggerIdentifier()
-
save
public void save() throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
-
saveAppenders
public void saveAppenders() throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
-
saveLoggers
public void saveLoggers() throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
-
saveAppender
public void saveAppender(String identifier) throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
-
saveLogger
public void saveLogger(String identifier) throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
-
removeAppender
public boolean removeAppender(String identifier) throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
-
removeLogger
public boolean removeLogger(String identifier) throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
-
createNewAppender
public IAppender createNewAppender(EAppenderType type, String nameCandidate)
-
createNewLogger
public ILogger createNewLogger()
-
addAppender
public void addAppender(IAppender appender)
-
addLogger
public void addLogger(ILogger logger)
-
-