Class DefaultConfiguration

  • All Implemented Interfaces:
    Configuration, Filterable, LifeCycle, LifeCycle2

    public class DefaultConfiguration
    extends AbstractConfiguration
    The default configuration writes all output to the Console using the default logging level. You configure default logging level by setting the system property "org.apache.logging.log4j.level" to a level name. If you do not specify the property, Log4j uses the ERROR Level. Log Events will be printed using the basic formatting provided by each Message.
    • Field Detail

      • DEFAULT_NAME

        public static final java.lang.String DEFAULT_NAME
        The name of the default configuration.
        See Also:
        Constant Field Values
      • DEFAULT_LEVEL

        public static final java.lang.String DEFAULT_LEVEL
        The System Property used to specify the logging level.
        See Also:
        Constant Field Values
      • DEFAULT_PATTERN

        public static final java.lang.String DEFAULT_PATTERN
        The default Pattern used for the default Layout.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultConfiguration

        public DefaultConfiguration()
        Constructor to create the default configuration.