How to call a Spring Bean from a custom Logback appender class

Integrate Logback with Spring ApplicationContext