简体   繁体   English

在Windows上查看Apache Solr日志

[英]Viewing Apache solr logs on windows

I have drupal based site with solr integration. 我有基于Solr集成的Drupal网站。 My localhost is on windows and the live site on Linux. 我的本地主机位于Windows上,而实时站点位于Linux上。

How do I enable and view solr logging for both setups? 如何启用和查看两种设置的Solr日志记录? I can see a log folder in my localhost but its empty. 我可以在本地主机中看到一个日志文件夹,但是它为空。

Just to elaborate, solr search etc works great in both setups. 只是为了详细说明,solr search等在这两种设置中都适用。 However I built a solr view that works perfectly on local but gives less accurate results on live. 但是,我构建了一个Solr视图,该视图在本地环境下效果很好,但实时效果却不太准确。 So I wanted to see the final solr queries being built to see the source of the difference. 因此,我想查看最终构建的Solr查询,以了解差异的根源。

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

Then modify your /example/etc/logging.properties inside you Solr instance to customize your logging pattern. 然后在Solr实例内部修改/example/etc/logging.properties以自定义日志记录模式。

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

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