Interface Configurator

  • All Known Implementing Classes:
    DOMConfigurator, PropertyConfigurator

    @Deprecated(since="2022-01-27")
    public interface Configurator
    Deprecated.
    Apache Log4j 1 has reached end of life in 2015 and is no longer supported.
    Implemented by classes capable of configuring log4j using a URL.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String INHERITED
      Deprecated.
      Special level value signifying inherited behaviour.
      static java.lang.String NULL
      Deprecated.
      Special level signifying inherited behaviour, same as INHERITED.
    • Field Detail

      • INHERITED

        static final java.lang.String INHERITED
        Deprecated.
        Special level value signifying inherited behaviour. The current value of this string constant is inherited. NULL is a synonym.
        See Also:
        Constant Field Values
      • NULL

        static final java.lang.String NULL
        Deprecated.
        Special level signifying inherited behaviour, same as INHERITED. The current value of this string constant is null.
        See Also:
        Constant Field Values
    • Method Detail

      • doConfigure

        void doConfigure​(java.net.URL url,
                         LoggerRepository repository)
        Deprecated.
        Interpret a resource pointed by a URL and set up log4j accordingly. The configuration is done relative to the hierarchy parameter.
        Parameters:
        url - The URL to parse
        repository - The hierarchy to operation upon.