Associate specific SLF4J logger with Jetty embedded
I'm trying to assign a specific SLF4J logger instance to my Jetty embedded
server using the following lines of code:
Logger myLogger = LoggerFactory.getLogger("Web Server");
Log.setLog((org.eclipse.jetty.util.log.Logger) myLogger)
where myLogger is an instance of org.slf4j.Logger. This returns a
ClassCastException since
org.slf4j.impl.Log4jLoggerAdapter cannot be cast to
org.eclipse.jetty.util.log.Logger`
How then can I go about this process?
No comments:
Post a Comment