You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Robert Middleton (Jira)" <lo...@logging.apache.org> on 2022/11/25 15:02:00 UTC

[jira] [Created] (LOGCXX-566) Configurable output colors for log messages

Robert Middleton created LOGCXX-566:
---------------------------------------

             Summary: Configurable output colors for log messages
                 Key: LOGCXX-566
                 URL: https://issues.apache.org/jira/browse/LOGCXX-566
             Project: Log4cxx
          Issue Type: Improvement
            Reporter: Robert Middleton
            Assignee: Robert Middleton
             Fix For: 1.0.0


With the %Y formatter, we can colorize the log output messages depending on their level.

 

This should be expanded to have a parameter on the PatternLayout that you can use to apply the colors.  For example, error is currently "\x1B[91m" for red, but this should be user-configurable so that it can be a different color if required.

This also means that things such as bold text can be configured by the user.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)