Issue Type: Improvement Improvement
Affects Versions: 1.1.3
Assignee: Logback dev list
Components: logback-classic
Created: 26/Jun/15 3:18 PM
Description:

In my configuration file I have an encoder pattern for console appender with %highlight

{...}

inside. This works as expected when I run the application from a real terminal.

However, occasionally I run the application from a program that doesn't understand ANSI color escapes. As a result, I see those ^[[31m which of course only pollutes logging. I don't want to create separate configurations just for running the same application from a real terminal / not a real terminal, not to mention that that would add additional troubles of specifying "which configuration to pick" all the time.

Request: add possibility to enable/disable highlighting when not connected to a real terminal. Many standard Linux programs can do that; I believe they use isatty() function.

Environment:

Linux

Project: logback
Labels: consoleoutput
Priority: Minor Minor
Reporter: Paul Pogonyshev
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/logback-dev

Reply via email to