You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2014/09/17 17:31:33 UTC

[jira] [Comment Edited] (LOG4J2-835) Possibility to turn off logging of lib name and version in exception stack trace

    [ https://issues.apache.org/jira/browse/LOG4J2-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14137390#comment-14137390 ] 

Ralph Goers edited comment on LOG4J2-835 at 9/17/14 3:31 PM:
-------------------------------------------------------------

If you do not include one of the exception converter formats in the pattern the pattern layout acts as if %xEx was specified. Simply change your pattern to end with %ex instead. This behavior is documented at http://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout.


was (Author: ralph.goers@dslextreme.com):
If you do not include one of the exception converter formats in the pattern the pattern layout acts as if %xEx was specified. Simply change your pattern to end with %ex instead.

> Possibility to turn off logging of lib name and version in exception stack trace
> --------------------------------------------------------------------------------
>
>                 Key: LOG4J2-835
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-835
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.2
>            Reporter: Anton Korenkov
>            Priority: Minor
>
> New feature in log4j-2 is library name and version appending while logging stack trace. Sometimes it's helpful, but in some cases it will be good to turn off this feature by setting new property (e.g. "appned-lib") to false for example.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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