Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-903

Make the logger converter support tokenized output like log4j

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.0.13
    • None
    • None

    Description

      Currently the precision attribute of the NamedConverter (%logger, %c, %lo keywords) abbreviates the FQN of the based on a max number of characters.

      This was a major headache for us when migrating from log4j, because our logger hierarchy was carefully designed so that many appenders only output the last 2 tokens, which is impossible with the current NamedConverter.

      Perhaps the log4j 2 equivalent can serve as an inspiration.

      Additionally, the Abbreviator could be made pluggable.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            raulk Raúl Kripalani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: