|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jorphan.logging.LoggingManager
public final class LoggingManager
Manages JMeter logging
Field Summary | |
---|---|
static String |
DEFAULT_PATTERN
|
static String |
LOG_FILE
|
static String |
LOG_PRIORITY
|
Method Summary | |
---|---|
static void |
addLogTargetToRootLogger(org.apache.log.LogTarget[] logTargets)
Add logTargets to root logger FIXME What's the clean way to add a LogTarget afterwards ? |
static org.apache.log.Logger |
getLoggerFor(String category)
Get the Logger for a class. |
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 org.apache.log.Logger |
getLoggerForShortName(String category)
Get the Logger for a class. |
static void |
initializeLogging(Properties properties)
Initialise the logging system from the Jmeter properties. |
static String |
removePrefix(String name)
Removes the standard prefix, i.e. |
static void |
setLoggingLevels(Properties appProperties)
Handle LOG_PRIORITY.category=priority and LOG_FILE.category=file_name properties. |
static void |
setPriority(org.apache.log.Priority priority)
Set the default logging priority. |
static void |
setPriority(org.apache.log.Priority priority,
String category)
Set the logging priority for a category. |
static void |
setPriority(String p)
|
static void |
setPriority(String priority,
String category)
Set the logging priority for a category. |
static void |
setPriorityFullName(String priority,
String fullName)
Set the logging priority for a category. |
static void |
setTarget(org.apache.log.LogTarget target,
String category)
Set the logging target for a category. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_PATTERN
public static final String LOG_FILE
public static final String LOG_PRIORITY
Method Detail |
---|
public static void initializeLogging(Properties properties)
public static void setLoggingLevels(Properties appProperties)
public static String removePrefix(String name)
name
- from which to remove the prefix
public static org.apache.log.Logger getLoggerForClass()
public static org.apache.log.Logger getLoggerFor(String category)
category
- - the full name of the logger category
public static org.apache.log.Logger getLoggerForShortName(String category)
category
- - the full name of the logger category, this will have the prefix removed.
public static void setPriority(String priority, String category)
priority
- - string containing the priority name, e.g. "INFO", "WARN", "DEBUG", "FATAL_ERROR"category
- - string containing the categorypublic static void setPriorityFullName(String priority, String fullName)
priority
- - priority, e.g. DEBUG, INFOfullName
- - e.g. org.apache.jmeter.etc, will have the prefix removed.public static void setPriority(org.apache.log.Priority priority, String category)
priority
- - e.g. Priority.DEBUGcategory
- - string containing the categorypublic static void setPriority(String p)
public static void setPriority(org.apache.log.Priority priority)
priority
- e.g. Priority.DEBUGpublic static void setTarget(org.apache.log.LogTarget target, String category)
target
- the LogTargetcategory
- the category namepublic static void addLogTargetToRootLogger(org.apache.log.LogTarget[] logTargets)
logTargets
- LogTarget array
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |