Hello, I'm trying to use the loki-logback-appender in a Quarkus Application but I'm getting an error related to the class Loki4JAppender being final.
The error is "java.lang.IncompatibleClassChangeError: class com.github.loki4j.logback.Loki4jAppender$$delayed cannot inherit from final class com.github.loki4j.logback.Loki4jAppender"
There's a quarkus extension - io.quarkiverse.logging.logback:quarkus-logging-logback that allows using logback appenders in a quarkus application. It seems that the extension is trying to extend the appender class in order to use it.
In my local development setup, I've created a copy of Loki4jAppender, removing the final class modifier and it worked.
Hello, I'm trying to use the loki-logback-appender in a Quarkus Application but I'm getting an error related to the class Loki4JAppender being final.
The error is "java.lang.IncompatibleClassChangeError: class com.github.loki4j.logback.Loki4jAppender$$delayed cannot inherit from final class com.github.loki4j.logback.Loki4jAppender"
There's a quarkus extension - io.quarkiverse.logging.logback:quarkus-logging-logback that allows using logback appenders in a quarkus application. It seems that the extension is trying to extend the appender class in order to use it.
In my local development setup, I've created a copy of Loki4jAppender, removing the
final
class modifier and it worked.Could be possible to remove that
final
modifier?