Apache JMeter
2.0.1.20050615

org.apache.jorphan.logging
Class LoggingManager

java.lang.Object
  extended byorg.apache.jorphan.logging.LoggingManager

public final class LoggingManager
extends Object

Version:
$Revision: 1.13 $ on $Date: 2004/03/22 02:09:56 $

Field Summary
static String LOG_FILE
           
static String LOG_PRIORITY
           
 
Method Summary
static org.apache.log.Logger getLoggerFor(String category)
           
static org.apache.log.Logger getLoggerForClass()
          Get the Logger for a class - no argument needed because the calling class name is derived automatically from the call stack.
static LoggingManager getLogManager()
           
static void initializeLogging(Properties properties)
          Initialise the logging system from the Jmeter properties.
static void setPriority(org.apache.log.Priority p)
           
static void setPriority(org.apache.log.Priority p, String category)
           
static void setPriority(String p)
           
static void setPriority(String p, String category)
           
static void setTarget(org.apache.log.LogTarget target, String category)
           
static void setTarget(Writer targetFile)
          Sets the default log target from the parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_FILE

public static final String LOG_FILE
See Also:
Constant Field Values

LOG_PRIORITY

public static final String LOG_PRIORITY
See Also:
Constant Field Values
Method Detail

getLogManager

public static LoggingManager getLogManager()

initializeLogging

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


getLoggerForClass

public static org.apache.log.Logger getLoggerForClass()
Get the Logger for a class - no argument needed because the calling class name is derived automatically from the call stack.

Returns:
Logger

getLoggerFor

public static org.apache.log.Logger getLoggerFor(String category)

setPriority

public static void setPriority(String p,
                               String category)

setPriority

public static void setPriority(org.apache.log.Priority p,
                               String category)

setPriority

public static void setPriority(String p)

setPriority

public static void setPriority(org.apache.log.Priority p)

setTarget

public static void setTarget(org.apache.log.LogTarget target,
                             String category)

setTarget

public static void setTarget(Writer targetFile)
Sets the default log target from the parameter. The existing target is first closed if necessary.

Parameters:
targetFile - (Writer)

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.