How do I change the path to catalina.out?

家住魔仙堡 提交于 2019-12-10 14:55:14

问题


I am unable to find the setting to move the catalina.out logs to /var/log/jira.

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.

The logging.properties had the following attributes:

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

I tried adding the following line:

java.util.logging.FileHandler.pattern=/var/log/jira

which had no impact.


回答1:


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"


来源:https://stackoverflow.com/questions/33194637/how-do-i-change-the-path-to-catalina-out

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!