Home » jakarta-jmeter-2.3.4_src » org.apache.jorphan.logging » [javadoc | source]
org.apache.jorphan.logging
public final class: LoggingManager [javadoc | source]
java.lang.Object
   org.apache.jorphan.logging.LoggingManager
Manages JMeter logging
Field Summary
public static final  String LOG_FILE     
public static final  String LOG_PRIORITY     
Method from org.apache.jorphan.logging.LoggingManager Summary:
getLogManager,   getLoggerFor,   getLoggerForClass,   getLoggerForShortName,   initializeLogging,   removePrefix,   setLoggingLevels,   setPriority,   setPriority,   setPriority,   setPriority,   setPriorityFullName,   setTarget,   setTarget
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jorphan.logging.LoggingManager Detail:
 public static synchronized LoggingManager getLogManager() 
 public static Logger getLoggerFor(String category) 
    Get the Logger for a class.
 public static Logger getLoggerForClass() 
    Get the Logger for a class - no argument needed because the calling class name is derived automatically from the call stack.
 public static Logger getLoggerForShortName(String category) 
    Get the Logger for a class.
 public static  void initializeLogging(Properties properties) 
    Initialise the logging system from the Jmeter properties. Logkit loggers inherit from their parents. Normally the jmeter properties file defines a single log file, so set this as the default from "log_file", default "jmeter.log" The default priority is set from "log_level", with a default of INFO
 public static String removePrefix(String name) 
    Removes the standard prefix, i.e. "org.apache.".
 public static  void setLoggingLevels(Properties appProperties) 
    Handle LOG_PRIORITY.category=priority and LOG_FILE.category=file_name properties. If the prefix is detected, then remove it to get the category.
 public static  void setPriority(String p) 
 public static  void setPriority(Priority priority) 
    Set the default logging priority.
 public static  void setPriority(String priority,
    String category) 
    Set the logging priority for a category.
 public static  void setPriority(Priority priority,
    String category) 
    Set the logging priority for a category.
 public static  void setPriorityFullName(String priority,
    String fullName) 
    Set the logging priority for a category.
 public static synchronized  void setTarget(Writer targetFile) 
    Sets the default log target from the parameter. The existing target is first closed if necessary.
 public static  void setTarget(LogTarget target,
    String category) 
    Set the logging target for a category.