Package org.apache.log4j.lf5
Class DefaultLF5Configurator
- java.lang.Object
-
- org.apache.log4j.lf5.DefaultLF5Configurator
-
- All Implemented Interfaces:
Configurator
public class DefaultLF5Configurator extends Object implements Configurator
TheDefaultLF5Configurator
provides a default configuration for theLF5Appender
. Note: The preferred method for configuring aLF5Appender
is to use theLF5Manager
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
-
-
Field Summary
-
Fields inherited from interface org.apache.log4j.spi.Configurator
INHERITED, NULL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
configure()
This method configures theLF5Appender
using a default configuration file.void
doConfigure(InputStream inputStream, LoggerRepository repository)
This is a dummy method that will throw anIllegalStateException
if used.void
doConfigure(URL configURL, LoggerRepository repository)
This is a dummy method that will throw anIllegalStateException
if used.
-
-
-
Method Detail
-
configure
public static void configure() throws IOException
This method configures theLF5Appender
using a default configuration file. The default configuration file isdefaultconfig.properties .- Throws:
IOException
-
doConfigure
public void doConfigure(InputStream inputStream, LoggerRepository repository)
This is a dummy method that will throw anIllegalStateException
if used.- Specified by:
doConfigure
in interfaceConfigurator
- Parameters:
inputStream
- The InputStream to parserepository
- 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 anIllegalStateException
if used.- Specified by:
doConfigure
in interfaceConfigurator
- Parameters:
configURL
- The URL to parserepository
- The hierarchy to operation upon.
-
-