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
    • Field Detail

      • DEFAULT_ERROR_APPENDER_NAME

        public static final String DEFAULT_ERROR_APPENDER_NAME
        Appender name for the special log file that contains all errors from the formcycle application.
        See Also:
        Constant Field Values
      • DEFAULT_ERROR_APPENDER_FILE_NAME_PATTERN

        public static final Pattern 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

        public static final String DEFAULT_ERROR_APPENDER_FILE_NAME_PREFIX
        Prefix for the special log file that contains all errors from the formcycle application.
        See Also:
        Constant Field Values
    • Method Detail

      • 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 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.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
      • createNewLogger

        public ILogger createNewLogger()
      • addAppender

        public void addAppender​(IAppender appender)
      • addLogger

        public void addLogger​(ILogger logger)