Class XLogConfig

  • All Implemented Interfaces:
    ILogConfig, Serializable

    public class XLogConfig
    extends Object
    implements ILogConfig
    Wrapper model for accessing/modifying logger components of Logger PropertiesConfiguration
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    See Also:
    Serialized Form
    • 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 for XfcConfig.LOGGING!
        Parameters:
        fileConfig - configuration file
        Returns:
        logging configuration
      • getFacesLogger

        public ILogger getFacesLogger()
      • getRootLogger

        public ILogger getRootLogger()
      • 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
      • createNewLogger

        public ILogger createNewLogger()
      • addAppender

        public void addAppender​(IAppender appender)
      • addLogger

        public void addLogger​(ILogger logger)