开发者

How do I turn off DBUG level logging in BayeuxServer (embedded in Jetty)?

When running the CometD Bayeux implementation in Jetty (7.1.5), lots of DBUG level loggi开发者_开发问答ng is output to the console. I've identified the logger as a org.eclipse.jetty.util.log.StdErrLog instance, but I'm not sure how to configure it.

I'm using Jetty embedded within another application, so I tried the things suggested at http://docs.codehaus.org/display/JETTY/Debugging ("With Jetty embedded" section), but had no success.

At the moment I'm running my app with |& grep -v DBUG, but that's fairly annoying. Does anyone know how to configure this type of logger?


Finally tracked down how to set the debug level. Where the CometdServlet is created and added to a context, you can set the logLevel init parameter on the ServletHolder to an appropriate level (anything 3 or greater includes debug).

ServletHolder comet = context.addServlet( CometdServlet.class, "/cometd/*" );
comet.setInitParameter( "logLevel", 2 );
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜