Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-241

Support the ability to trim logger name from the right.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.0-beta6
    • 2.20.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              rgoers Ralph Goers
              kurt.lehrke Kurt Lehrke
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: