我已经安装了jira 7.3.6并创建了一个自定义身份验证器类,我将以下消息写入日志:
log.debug(" - - Debug");
log.warn(" - - Warning");
log.info(" - - INFO");
System.out.println(" - - - - - Test print - - ");
但日志文件位于:
/opt/jira/atlassian/data/log/atlassian-jira.log
不包含上述任何打印消息。我确实看到了:
- - - - - Test print - -
从系统输出调用:
/opt/jira/atlassian/jira/logs/catalina.out
验证上面的代码是否确实执行了。 log4j.properties
中的第一行包含:
log4j.rootLogger=DEBUG, filelog, cloudAppender
所以应该打印这些日志消息。
任何可能出错的想法以及让日志记录工作的想法?
答案 0 :(得分:3)
我自己找到了答案:
https://confluence.atlassian.com/adminjiraserver071/logging-and-profiling-802592962.html
可以在System info -> File Paths