Issue Details (XML | Word | Printable)

Key: RETEPTOOLS-35
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: petermount
Reporter: petermount
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
reteptools

add new methods to logging Log class

Created: 07/Jun/10 03:04 PM   Updated: 08/Jul/10 08:46 AM   Resolved: 08/Jul/10 08:46 AM
Component/s: Miscelaneous
Affects Version/s: 10.5.1
Fix Version/s: 10.6

Time Tracking:
Not Specified

Tags:


 Description  « Hide

A common log4j mistake is to write something like:

try {
    //
} catch( Exception ex ) {
    getLog().error( ex );
}

That, because the single arg method takes Object will write ex.toString() instead of a stacktrace.

So should we add one, i.e. in Log:

public void error( Exception ex ) {
    error( ex.getMessage(), ex )
}

Obviously adding null checking...



There are no comments yet on this issue.