Save This Page
Home » apache-log4j-1.2.15 » examples.lf5 » InitUsingLog4JProperties » [javadoc | source]
examples.lf5.InitUsingLog4JProperties
public class: InitUsingLog4JProperties [javadoc | source]
java.lang.Object
   examples.lf5.InitUsingLog4JProperties.InitUsingLog4JProperties
This class is a simple example of how to use the LogFactor5 logging window. The LF5Appender is the primary class that enables logging to the LogFactor5 logging window. The simplest method of using this Appender is to add the following line to your log4j.properties file: log4j.appender.A1=org.apache.log4j.lf5.LF5Appender The log4j.properties file MUST be in you system classpath. If this file is in your system classpath, a static initializer in the Category class will load the file during class initialization. The LF5Appender will be added to the root category of the Category tree. Create a log4j.properties file and add this line to it, or add this line to your existing log4j.properties file. Run the example at the command line and explore the results!
Method from examples.lf5.InitUsingLog4JProperties.InitUsingLog4JProperties Summary:
main
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from examples.lf5.InitUsingLog4JProperties.InitUsingLog4JProperties Detail:
 public static  void main(String[] argv)