
http://bugzilla.qos.ch/show_bug.cgi?id=70 Summary: %throwable does not work Product: logback-classic Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: trivial Priority: P1 Component: Other AssignedTo: logback-dev@qos.ch ReportedBy: dirk@onesparrow.com According to http://logback.qos.ch/manual/layouts.html#PatternLayout '%throwable' can be used in a pattern, but it is rejected with the message '[throwable] is not a valid conversion word'. %ex does work and this is also clear from the source of PatternLayout.java. So either the documentation needs to be changed or the source adapted to include %throwable. -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=70 noreply.ceki@qos.ch changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from noreply.ceki@qos.ch 2007-05-04 15:31 ------- Corrected in commit r1526 [1]. Dirk, were you aware that the %ex conversion word, or its aliases %exception and %throwable, are automatically added even when not specified in the conversion pattern? I've updated the docs to make this point clearer. If you wish to ignore stack traces, then the solution is to add the %nopex conversion word. [1] http://www.qos.ch/pipermail/logback-dev/2007-May/001928.html -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.

http://bugzilla.qos.ch/show_bug.cgi?id=70 ------- Comment #2 from dirk@onesparrow.com 2007-05-05 10:48 -------
Dirk, were you aware that the %ex conversion word, or its aliases %exception and %throwable, are automatically added even when not specified in the conversion pattern?
no, i wasn't. but anyway %throwable was not recognized by logback, while %ex was. -- Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
participants (1)
-
bugzilla-daemon@pixie.qos.ch