[
https://issues.apache.org/jira/browse/LOG4J2-241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13651264#comment-13651264
]
Kurt Lehrke commented on LOG4J2-241:
------------------------------------
Yes. We have a layered product configuration where our server software is
completely decoupled from business logic. We allow products to implement an
"ActivityHook". They then name all their classes "AuditActivityHook" or
"HibernateActivityHook". Unfortunately. trimming to say 10 characters all we
can see when they log is "(tivityHook)", for example. "(AuditActiv)" would be
more useful for our product teams to identify where the message is being run.
This is just one example.
> Support the ability to trim logger name from the right.
> -------------------------------------------------------
>
> Key: LOG4J2-241
> URL: https://issues.apache.org/jira/browse/LOG4J2-241
> Project: Log4j 2
> Issue Type: Improvement
> Affects Versions: 2.0-beta6
> Reporter: Kurt Lehrke
> Priority: Minor
>
> In log4j2, there doesn't seem to be a way to trim the logger name from the
> right. I have a situation where our logger names can be extremely large,
> even when only using the class name. We'd like to trim it down to a certain
> number of characters (e.g. 10). When reading trace files, the 10 beginning
> characters would be more unique than the last 10 characters. This would be
> extremely useful for us to be able to do in the configuration file in the
> pattern layout.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]