Package org.apache.jorphan.logging
Class LoggingManager
java.lang.Object
org.apache.jorphan.logging.LoggingManager
Deprecated.
since 3.2, use SLF4J for logger creation
Manages JMeter logging
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddLogTargetToRootLogger(LogTarget[] logTargets) Deprecated.since 3.2, use SLF4J for loggingstatic LoggergetLoggerFor(String category) Deprecated.Get the Logger for a class.static LoggerDeprecated.Get the Logger for a class - no argument needed because the calling class name is derived automatically from the call stack.static LoggergetLoggerForShortName(String category) Deprecated.since 3.2, use SLF4J for loggingstatic voidinitializeLogging(Properties properties) Deprecated.since 3.2, use SLF4J for loggingstatic StringremovePrefix(String name) Deprecated.since 3.2, use SLF4J for loggingstatic voidsetLoggingLevels(Properties appProperties) Deprecated.since 3.2, use SLF4J for loggingstatic voidsetPriority(String priority) Deprecated.since 3.2, use SLF4J for loggingstatic voidsetPriority(String priority, String category) Deprecated.since 3.2, use SLF4J for loggingstatic voidsetPriority(Priority priority) Deprecated.since 3.2, use SLF4J for loggingstatic voidsetPriority(Priority priority, String category) Deprecated.since 3.2, use SLF4J for loggingstatic voidsetPriorityFullName(String priority, String fullName) Deprecated.since 3.2, use SLF4J for loggingstatic voidDeprecated.since 3.2, use SLF4J for logging
- 
Field Details- 
DEFAULT_PATTERNDeprecated.since 3.2, use SLF4J for loggingPredefined format patterns, selected by the property log_format_type (see jmeter.properties) The new-line is added later- See Also:
 
- 
LOG_FILEDeprecated.since 3.2, use SLF4J for logging- See Also:
 
- 
LOG_PRIORITYDeprecated.since 3.2, use SLF4J for logging- See Also:
 
 
- 
- 
Method Details- 
initializeLoggingDeprecated.since 3.2, use SLF4J for loggingInitialise 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- Parameters:
- properties-- Propertiesto be used for initialization
 
- 
setLoggingLevelsDeprecated.since 3.2, use SLF4J for loggingHandle LOG_PRIORITY.category=priority and LOG_FILE.category=file_name properties. If the prefix is detected, then remove it to get the category.- Parameters:
- appProperties-- Propertiesthat contain the- LOG_PRIORITYand- LOG_FILEprefixed entries
 
- 
removePrefixDeprecated.since 3.2, use SLF4J for loggingRemoves the standard prefix, i.e. "org.apache.".- Parameters:
- name- from which to remove the prefix
- Returns:
- the name with the prefix removed
 
- 
getLoggerForClassDeprecated.Get the Logger for a class - no argument needed because the calling class name is derived automatically from the call stack.- Returns:
- Logger
 
- 
getLoggerForDeprecated.Get the Logger for a class.- Parameters:
- category- - the full name of the logger category
- Returns:
- Logger
 
- 
getLoggerForShortNameDeprecated.since 3.2, use SLF4J for loggingGet the Logger for a class.- Parameters:
- category- - the full name of the logger category, this will have the prefix removed.
- Returns:
- Logger
 
- 
setPriorityDeprecated.since 3.2, use SLF4J for loggingSet the logging priority for a category.- Parameters:
- priority- - string containing the priority name, e.g. "INFO", "WARN", "DEBUG", "FATAL_ERROR"
- category- - string containing the category
 
- 
setPriorityFullNameDeprecated.since 3.2, use SLF4J for loggingSet the logging priority for a category.- Parameters:
- priority- - priority, e.g. DEBUG, INFO
- fullName- - e.g. org.apache.jmeter.etc, will have the prefix removed.
 
- 
setPriorityDeprecated.since 3.2, use SLF4J for loggingSet the logging priority for a category.- Parameters:
- priority- - e.g. Priority.DEBUG
- category- - string containing the category
 
- 
setPriorityDeprecated.since 3.2, use SLF4J for loggingSet the logging priority.- Parameters:
- priority- - e.g. Priority.DEBUG
 
- 
setPriorityDeprecated.since 3.2, use SLF4J for loggingSet the default logging priority.- Parameters:
- priority- e.g. Priority.DEBUG
 
- 
setTargetDeprecated.since 3.2, use SLF4J for loggingSet the logging target for a category.- Parameters:
- target- the LogTarget
- category- the category name
 
- 
addLogTargetToRootLoggerDeprecated.since 3.2, use SLF4J for loggingAdd logTargets to root logger FIXME What's the clean way to add a LogTarget afterwards ?- Parameters:
- logTargets- LogTarget array
 
 
-