You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2021/08/27 16:19:21 UTC

[GitHub] [logging-log4j2] sman-81 commented on pull request #542: LOG4J2-2785: Added support for pattern Layout to abbreviate logger or class names except n rightmost words

sman-81 commented on pull request #542:
URL: https://github.com/apache/logging-log4j2/pull/542#issuecomment-907319321


   > [..] All existing patterns effectively use `rightWordCount=1`, however we could make that configurable and allow existing options to work with this.
   @carterkozak
   I don't think this is the case. Consider patterns such as  `1.1.1.*`. The number of unmodified words at the right side depends on the length of the string to be abbreviated, not on the pattern.
   `NameAbbreviator` is abstract. Implementations are `MaxElementAbbreviator` and `PatternAbbreviator`.
   I don't see a good way of covering the feature request within these two implementations, and have therefore added `DynamicWordAbbreviator`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org