如何更改通往catalina.out的路径? [英] How do I change the path to catalina.out?

查看:188
本文介绍了如何更改通往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.logcatalina.loghost-manager.loglocalhost.logmanager.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆