Save This Page
Home » apache-log4j-1.2.15 » org.apache » log4j » performance » [javadoc | source]
org.apache.log4j.performance
public class: NotLogging [javadoc | source]
java.lang.Object
   org.apache.log4j.performance.NotLogging
Measure the performance of evaluating whether to log or not to log, but not actually logging.

This program takes two arguments, a string which should be "true" for testing shipped code performance and "false" for testing debug-enabled performance the second argument is the run length of the measurement loops.

The results of the measurement (should) show that

Field Summary
static  int runLength     
static final  int INITIAL_HASH_SIZE     
static  String SHORT_MSG     
static  Category SHORT_CAT     
static  Category MEDIUM_CAT     
static  Category LONG_CAT     
static  Category INEXISTENT_SHORT_CAT     
static  Category INEXISTENT_MEDIUM_CAT     
static  Category INEXISTENT_LONG_CAT     
static  Category[] CAT_ARRAY     
Method from org.apache.log4j.performance.NotLogging Summary:
ComplexMessage,   FullyOptimizedComplexMessage,   ProgramInit,   SimpleMessage,   Usage,   main
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.performance.NotLogging Detail:
 static double ComplexMessage(Category category,
    long runLength) 
 static double FullyOptimizedComplexMessage(Category category,
    long runLength) 
 static  void ProgramInit(String[] args) 
    Program wide initialization method.
 static double SimpleMessage(Category category,
    String msg,
    long runLength) 
 static  void Usage() 
 public static  void main(String[] argv)