Open pajaroblanco opened 4 years ago
Hi @pajaroblanco we are looking into this issue and will get back to you quickly
Hi @pajaroblanco - the debug should be part of the configuration and not the code
@Doron-Bargo It is part of the configuration. Logback supports both XML configuration and Groovy configuration. When trying to set the debug
property when using a groovy logback configuration file, it results in a compilation error.
When using the logback.groovy configuration file, setting the debug property results in a compilation error. 'debug' is not a good property name for the LogzioLogbackAppender and should probably be changed to 'isDebug' or something similar.
Error:
I have also tried setting the debug property after the appender is registered:
The problem with this is that the underlying LogzioSender object was already built and the debug property was set to false at the time of instantiation so it makes no difference.
JDK: 11.0.7 Micronaut: 1.1.3 Logback: 1.2.3 logzio-logback-appender: 1.0.24