You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry if this has been answered before (I searched the discussions and couldn't find anything), but is there a way to enable ANSI in the console appender with logstash?
I'm using SpringBoot spring-logback.xml and I tried doing something like this, but it's not working:
<encoderclass="net.logstash.logback.encoder.LogstashEncoder">
<!-- Add a new provider after those than come with the LogstashEncoder -->
<providerclass="net.logstash.logback.composite.loggingevent.LoggingEventPatternJsonProvider">
<pattern>
{
"message": "%mask(%m)"
,"version": "%clr(${appVersion})"
,"timestamp": "%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd'T'HH:mm:ss'Z'}}"
}
</pattern>
</provider>
...
</encoder>
Instead of seeing the ANSI colored text, it shows this:
"version":"\u001B[32m2.0.0\u001B[0;39m"
I do have this setting in the application.properties, and it's working with other appenders:
spring.output.ansi.enabled=ALWAYS
I ultimately would like the output to look like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if this has been answered before (I searched the discussions and couldn't find anything), but is there a way to enable ANSI in the console appender with logstash?
I'm using SpringBoot spring-logback.xml and I tried doing something like this, but it's not working:
Instead of seeing the ANSI colored text, it shows this:
"version":"\u001B[32m2.0.0\u001B[0;39m"
I do have this setting in the application.properties, and it's working with other appenders:
spring.output.ansi.enabled=ALWAYS
I ultimately would like the output to look like this:
Beta Was this translation helpful? Give feedback.
All reactions