简体   繁体   中英

Jetty-Runner doesn't take log config

I'm running jetty-runner inside docker. I've tried putting jetty-logging.properties inside WEB-INF/classes, but it just seems to not pick it up. Has anyone ran into this issue ?

Logging initializes at the start of the JVM.

Using WEB-INF/classes is too late, as that's not available until way later, during the WebApp initialization.

If you are using Docker, the recommended approach is using the ${jetty.home} and ${jetty.base} techniques. (as built into the official Jetty docker images)

Also, jetty-runner is deprecated and will be removed soon, it would be good for you to start transitioning off of it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM