如何更改通往catalina.out的路径? [英] How do I change the path to catalina.out?
问题描述
我找不到将catalina.out
日志移到/var/log/jira
的设置.
I am unable to find the setting to move the catalina.out
logs to /var/log/jira
.
通过修改conf/logging.properties
文件中的属性,我成功设置了以下文件access_log.log
,catalina.log
,host-manager.log
,localhost.log
和manager.log
的路径.但是我不确定如何设置catalina.out
的路径,而该路径仍记录在JIRA-HOME/logs
中.
I successfully set the path to the following files access_log.log
, catalina.log
, host-manager.log
, localhost.log
and manager.log
by modifying the properties in the conf/logging.properties
file. However I'not sure how to set the path to catalina.out
which still gets logged in JIRA-HOME/logs
.
logging.properties
具有以下属性:
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
我尝试添加以下行:
java.util.logging.FileHandler.pattern=/var/log/jira
没有影响.
推荐答案
我不断进行实验,发现在bin/catalina.sh
中有设置此设置的说明,它指示应在bin/setenv.sh
中进行设置,如下所示:>
I kept experimenting and discovered that there are instructions to set this in bin/catalina.sh
which indicates that this should be set in bin/setenv.sh
like the following:
CATALINA_OUT="/var/log/jira/catalina.out"
这篇关于如何更改通往catalina.out的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!