When I start Micronaut project, in the IntelliJ it shows me at the Run box error that
Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.WindowsAnsiOutputStream
I know that is something which makes console output better, but I didn't found how fix it. Project ran successfully, but I want to try fix it...
It is a problem with colored logging in Logback on Windows. To workaround that you can set withJansi
to false
in logback.xml config file:
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>false</withJansi>
<encoder>
<pattern>%cyan(%d{HH:mm:ss.SSS}) %gray([%thread]) %highlight(%-5level) %magenta(%logger{36}) - %msg%n</pattern>
</encoder>
</appender>
...
</configuration>
There is also an Issue created for that, see: https://github.com/micronaut-projects/micronaut-core/issues/1521
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With