You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2003/06/06 02:33:14 UTC

DO NOT REPLY [Bug 20533] New: - Logging enhancements

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20533>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20533

Logging enhancements

           Summary: Logging enhancements
           Product: JMeter
           Version: 1.9RC1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: tjsb@slb.com


The patch for LoggingManager (to follow) adds the following new methods:

getLoggerForClass()
getLoggerForClass(String ignored) - deprecated

These obtain the logger category from the class name (see bug 20532), but with 
the leading "org.apache." removed for brevity.

The original getLoggerFor(String cat) method is unchanged.

The log_level property can now be specified without a category; if present, 
this is used to set the default log priority, otherwise INFO is used.

The log_file property ("jmeter.log" if omitted) is now used to set the default 
log target.

The log_file property can now be specified with a category suffix, in which 
case the file name is used to set the log target for that category.

The jmeter.properties file now does not need any log_level or log_file entries.

All public methods are now static (the ones that were changed were not called 
externally).

The format has been changed to always use 5 characters for the priority, so 
that messages line up better.

Note that the patch does not require any changes to other code; logging should 
work much the same as before.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org