Play fails to load custom log back appender

后端 未结 2 557
执念已碎
执念已碎 2021-02-18 21:28

I have created a custom logback appender. But play gives a ClassNotFound exception for the appender.

Following is my appender

package log

import ch.qos.         


        
2条回答
  •  梦毁少年i
    2021-02-18 22:13

    It seems that play's dynamically compiled classes in dev mode are not available for logback. I'm struggling with the same issue. Putting my custom appender to a separate jar file works for me. I assume in prod with staged final jar files this should not be a problem.

提交回复
热议问题