Save This Page
Home » apache-log4j-1.2.15 » examples » [javadoc | source]
examples
public class: Sort [javadoc | source]
java.lang.Object
   examples.Sort
Example code for log4j to viewed in conjunction with the SortAlgo class.

This program expects a configuration file name as its first argument, and the size of the array to sort as the second and last argument. See its source code for more details.

Play around with different values in the configuration file and watch the changing behavior.

Example configuration files can be found in sort1.properties, sort2.properties, sort3.properties and sort4.properties are supplied with the package.

If you are also interested in logging performance, then have look at the org.apache.log4j.performance.Logging class.

Field Summary
static  Logger logger     
Method from examples.Sort Summary:
main,   usage
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from examples.Sort Detail:
 public static  void main(String[] args) 
 static  void usage(String errMsg)