Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
1.1.3
-
Linux
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.