简体   繁体   English

如何查看solr的日志?

[英]How to view the logs for solr?

I'm running solr 4.6.1 on tomcat and encountering some problems in passing data through php. 我在Tomcat上运行solr 4.6.1,在通过php传递数据时遇到一些问题。 How can i view the logs to remove the issue? 如何查看日志以消除问题? The /solr/example/logs directory is empty. / solr / example / logs目录为空。

You need to do some steps to activate the solr logging to file. 您需要执行一些步骤来激活solr记录到文件。 By default it writes logs to console. 默认情况下,它将日志写入控制台。 While starting the Solr instance pass the following parameter to enable Solr logging to file. 在启动Solr实例时,传递以下参数以启用Solr记录到文件。

-Djava.util.logging.config.file=etc/logging.properties

Modify your /example/etc/logging.properties for you Solr instance to customize your logging pattern. 修改Solr实例的/example/etc/logging.properties以自定义日志记录模式。 After restarting you'll see it's writing the logs into solr0.log file. 重新启动后,您会看到它正在将日志写入solr0.log文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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