...
Read more about logging in Bitbucket how to enable runtime here:
https://confluence.atlassian.com/bitbucketserver/bitbucketenable-server-debug-logging-776640147.htmhtml
Confluence
Add the following at the bottom of the file ${CONFLUENCE_INSTALL}/confluence/WEB-INF/classes/log4j.properties
:
Code Block |
---|
log4j.appenderlogger.loginauditlog=orgcom.apache.kantegasso.AuditLog=INFO, securitylog log4j.DailyRollingFileAppender log4jadditivity.appendercom.loginauditlogkantegasso.File=${catalina.homeAuditLog=false |
The log will be written to: ${CONFLUENCE_HOME}/logs/atlassian-
...
security.log
...
The log will be written to: ${CONFLUENCE_INSTALL}/logs/atlassian-kantegalogin-audit.log
.
...
.
Jira
Version 9.5 and newer
Locate the bottom two lines of ${JIRA_INSTALL}/atlassian-jira/WEB-INF/classes/log4j2.xml
:
Code Block |
---|
</Loggers>
</Configuration> |
add the 3 first lines below so that the last 5 lines in the file look like this (the correct number of spaces in front of lines are not important):
Code Block |
---|
<Logger name="com.kantegasso.AuditLog" level="INFO" additivity="false">
<AppenderRef ref="securitylog"/>
</Logger>
</Loggers>
</Configuration> |
Older versions of Jira than 9.5
Add the following lines to ${JIRA_INSTALL}/atlassian-jira/WEB-INF/classes/log4j.properties
:
...