[
https://issues.apache.org/jira/browse/LOG4J2-926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251742#comment-14251742
]
Gary Gregory edited comment on LOG4J2-926 at 12/18/14 2:57 PM:
---------------------------------------------------------------
Looks useful. We need some way way to express that in the configuration and
some code. Patches welcome ;-)
was (Author: garydgregory):
It looks like you want a variation of the
{{org.apache.logging.log4j.core.pattern.NameAbbreviator.MaxElementAbbreviator}}
class. Looks useful. We need some way way to express that in the configuration
and some code. Patches welcome ;-)
> Truncate from the end of text format modifier
> ---------------------------------------------
>
> Key: LOG4J2-926
> URL: https://issues.apache.org/jira/browse/LOG4J2-926
> Project: Log4j 2
> Issue Type: Improvement
> Components: Pattern Converters
> Affects Versions: 2.1
> Reporter: David Ohana
>
> In log4j 2, I would like to trim the end of messages written to the console
> appender when size is above a specified threshold.
> I looked at the
> http://logging.apache.org/log4j/2.0/manual/layouts.html#PatternLayout docs
> but can see no option to truncate the end of the "msg" field.
> "%.1000msg" will leave only the last 1000 chars of the message.
> This is not good for me because in Java the most inner frames in stack trace
> are printed at the beginning of the message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]