更新后停止记录到日志文件位置

时间:2018-08-15 17:04:03

标签: solr

我刚刚将Solr升级到了7.4.0版本。 我遵循的过程是:

  • 将solr-7.4.0.tgz文件解压缩到/ opt /
  • 在/ opt /
  • 中将旧版本的'solr'符号链接指向新版本
  • 重新启动Solr

自重新启动以来,我的日志文件未更新: enter image description here

检查了我的/ var / solr中的log4j.properties文件,没有任何变化: enter image description here

我的solr.in.sh设置: enter image description here

据我所知,一切都指向正确的位置。

为什么我的日志没有更新,我该如何纠正?

2 个答案:

答案 0 :(得分:0)

来自CHANGES.TXT file for Solr 7.4.0

  

SOLR-7887:Solr现在使用Log4J 2.11。现在,log4j配置位于log4j2.xml中,而不是log4j.properties文件中。这仅是服务器端的更改,使用SolrJ的客户端不需要任何更改。客户端仍然可以使用与SLF4J兼容的任何日志记录实现。现在,我们让log4j2在启动时处理solr日志的旋转,并且bin / solr启动脚本将不再尝试执行此操作,也不再将现有的控制台或GC日志移入日志/已归档(SOLR-12144)。

虽然我对log4j2.xml格式不是很熟悉,但是documentation for the appenders的示例有助于理解新布局的工作原理,但是我很喜欢{{3 }}。

答案 1 :(得分:0)

您可能需要指定log4j2.xml文件的路径。

UIView.animate(withDuration: 2,
               delay: delay,
               options: [],
               animations: { [unowned self] in
                        self.frame = CGRect(origin: newFrame.origin, size: newFrame.size)
               },
               completion: { [unowned self] (position) in
                   if self.destination != self.state {
                        UIView.transition(with: self,
                                          duration: 8,
                                          options: [.transitionFlipFromLeft, UIViewAnimationOptions.layoutSubviews],
                                          animations: {[unowned self] in
                                              self.state = self.destination
                                              self.setNeedsDisplay()
                        },
                                          completion: { (position) in

                   })
               }
})

为我工作。根据需要自定义文件。

相关问题