Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何配置Jetty 9为仅记录严重错误?因为当我部署Solr到时Jetty,Solr日志文件变得越来越大。
Jetty 9
Solr
Jetty
PS:我知道$JETTY_HOME/etc/jetty-logging.xml是用来配置日志的,而且里面的日志框架Java是按层次组织的。
$JETTY_HOME/etc/jetty-logging.xml
Java
我找到了要编辑的文件以仅记录warning错误及以上,输入$JETTY_HOME/resources/jetty-logging.properties:
warning
$JETTY_HOME/resources/jetty-logging.properties
org.eclipse.jetty.LEVEL=WARN
部署需要Log4jlike的应用程序时Solr,您也需要修改其他文件(log4j.properties):
Log4j
log4j.properties
log4j.rootLogger=WARN, stdout