Uploaded image for project: 'Community Edition'
  1. Community Edition
  2. MGNLCE-149

Colorize log levels written to the console

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • 1

    Description

      With this tiny tweak we'll get color-differentiated log4j message levels in the console:

      Howto:

      In /webapps/magnoliaAuthor/WEB-INF/config/default/log4j2.xml

      use the %highlight wrapper in the pattern of the PatternLayout tag:

      <PatternLayout pattern="%d %highlight{%-5p} %-50.50c: %m%n"/>
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                asiska Adam Siska
                mdrapela Martin Drápela
                Votes:
                4 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoD