1
我目前正尝试使用slf4j为jetty 8配置集中记录。我发现了下面的[教程] [1],但似乎没有与码头工作。8有人知道如何做到这一点与码头8?Jetty 8使用slf4j集中记录
解决方案:
码头,web应用,logging.xml必须具备以下内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<!-- =============================================================== -->
<!-- Enable Centralized Logging in the Jetty Server -->
<!-- =============================================================== -->
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<Ref id="DeploymentManager">
<Call name="addLifeCycleBinding">
<Arg>
<New class="org.mortbay.jetty.webapp.logging.CentralizedWebAppLoggingBinding">
</New>
</Arg>
</Call>
</Ref>
</Configure>
通过使用以下jetty-webapp-logging.xml解决它: – aluedeke 2013-05-12 19:04:17