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

http://issues.apache.org/bugzilla/show_bug.cgi?id=30440

logger.smething(exception) does not log stack trace

           Summary: logger.smething(exception) does not log stack trace
           Product: Log4j
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hello, I have I wish.

logger.debug(exception)

(or logger.info(exception))

behaves as

logger.debug(exception.toString())

but should (I think) be equlivalent of

logger.debug(exception.getMessage(), exception)

to get exception stack trace in logs. Because exceptions mostly logged to help
debugging, and in this case, stack trace can help.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to