Logback filter error

Hey,

I’m trying to create basic logback filter.

  1. I’ve added SampleFilter.java (com.test package) to my app.

  2. Also, logback.xml was modified:
    <appender name="XXX" class="ch.qos.logback.core.rolling.RollingFileAppender"> <filter class="com.test.SampleFilter" /> .... </appender>

When I try up app, I’ve got an error.
Also, I’ve checked .jar file from deploy dir. com.test.SampleFilter.class is exists.

So any thoughts how to add filter/fix this issue?

Sorry, custom logback filters are not supported at the moment. Since logback is part of the bootstrapping the custom jar will need to be in the boostrap classloader.