[ 
https://issues.apache.org/jira/browse/IGNITE-17442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Pereslegin updated IGNITE-17442:
--------------------------------------
    Description: 
Recently completed Ignite migration to use log4j2. So we can use ["highlight" 
conversion 
pattern|https://logging.apache.org/log4j/2.x/manual/layouts.html#Patterns] to 
colorize the output.

Initial proposal for production console output (pretty similar to spring boot).
!prod-propsal.png|width=679,height=337!

Pattern for log4j 2.18+
{noformat}
<PatternLayout 
pattern="%style{[%d{ISO8601}]}{#777777}%highlight{[%-5p]}{FATAL=red blink, 
ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, 
TRACE=blue}%style{[%t]}{magenta}%style{[%c{1}]}{cyan}%notEmpty{[%markerSimpleName]}
 %m%n"/>
{noformat}
For the test framework, there is a suggestion - to color the output of each 
node with its own color. Apparently this can't be done without adding your own 
plugin for log4j.

  was:
Recently completed Ignite migration to use log4j2. So we can use ["highlight" 
conversion 
pattern|https://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout] 
to colorize the output.

Initial proposal for production console output (pretty similar to spring boot).
!prod-propsal.png|width=679,height=337!

Pattern for log4j 2.18+
{noformat}
<PatternLayout 
pattern="%style{[%d{ISO8601}]}{#777777}%highlight{[%-5p]}{FATAL=red blink, 
ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, 
TRACE=blue}%style{[%t]}{magenta}%style{[%c{1}]}{cyan}%notEmpty{[%markerSimpleName]}
 %m%n"/>
{noformat}
For the test framework, there is a suggestion - to color the output of each 
node with its own color. Apparently this can't be done without adding your own 
plugin for log4j.


> Colorize Ignite console output
> ------------------------------
>
>                 Key: IGNITE-17442
>                 URL: https://issues.apache.org/jira/browse/IGNITE-17442
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Pavel Pereslegin
>            Assignee: Pavel Pereslegin
>            Priority: Major
>         Attachments: prod-propsal.png
>
>
> Recently completed Ignite migration to use log4j2. So we can use ["highlight" 
> conversion 
> pattern|https://logging.apache.org/log4j/2.x/manual/layouts.html#Patterns] to 
> colorize the output.
> Initial proposal for production console output (pretty similar to spring 
> boot).
> !prod-propsal.png|width=679,height=337!
> Pattern for log4j 2.18+
> {noformat}
> <PatternLayout 
> pattern="%style{[%d{ISO8601}]}{#777777}%highlight{[%-5p]}{FATAL=red blink, 
> ERROR=red, WARN=yellow bold, INFO=green, DEBUG=green bold, 
> TRACE=blue}%style{[%t]}{magenta}%style{[%c{1}]}{cyan}%notEmpty{[%markerSimpleName]}
>  %m%n"/>
> {noformat}
> For the test framework, there is a suggestion - to color the output of each 
> node with its own color. Apparently this can't be done without adding your 
> own plugin for log4j.



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

Reply via email to