Jetty logging config

This commit is contained in:
serge-rider
2020-09-17 22:09:54 +03:00
parent ec6c739dfd
commit ec68aaef8b
@@ -27,8 +27,13 @@ public class CBJettyServer {
private static final Log log = Log.getLog(CBJettyServer.class);
private static final String SESSION_CACHE_DIR = ".http-sessions";
static {
// Set Jetty log level to WARN
System.setProperty("org.eclipse.jetty.util.log.class", "org.eclipse.jetty.util.log.StdErrLog");
System.setProperty("org.eclipse.jetty.LEVEL", "WARN");
}
public CBJettyServer() {
System.setProperty("org.eclipse.jetty.LEVEL", "INFO");
}
public void runServer() {