没有任何内容写入日志文件(atlassian jira)

Nothing gets written to log file (atlassian jira)

我已经安装了 jira 7.3.6 并制作了一个自定义身份验证器 class,我将以下消息写入日志:

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

所以它应该打印那些日志消息。

任何想法可能是错误的,以及让日志记录工作的想法?

自己找到答案使用:

https://confluence.atlassian.com/adminjiraserver071/logging-and-profiling-802592962.html

文件的实际位置可以在 Jira Web UI 中从 System info -> File Paths

中读取