Class DefaultLF5Configurator

  • All Implemented Interfaces:
    Configurator

    public class DefaultLF5Configurator
    extends Object
    implements Configurator
    The DefaultLF5Configurator provides a default configuration for the LF5Appender. Note: The preferred method for configuring a LF5Appender is to use the LF5Manager class. This class ensures that configuration does not occur multiple times, and improves system performance. Reconfiguring the monitor multiple times can result in unexpected behavior.
    Author:
    Brent Sprecher
    • Method Detail

      • configure

        public static void configure()
                              throws IOException
        This method configures the LF5Appender using a default configuration file. The default configuration file is defaultconfig.properties.
        Throws:
        IOException
      • doConfigure

        public void doConfigure​(InputStream inputStream,
                                LoggerRepository repository)
        This is a dummy method that will throw an IllegalStateException if used.
        Specified by:
        doConfigure in interface Configurator
        Parameters:
        inputStream - The InputStream to parse
        repository - The hierarchy to operation upon.
        Since:
        1.2.17
      • doConfigure

        public void doConfigure​(URL configURL,
                                LoggerRepository repository)
        This is a dummy method that will throw an IllegalStateException if used.
        Specified by:
        doConfigure in interface Configurator
        Parameters:
        configURL - The URL to parse
        repository - The hierarchy to operation upon.