How to create a Fisheye/Crucible individual file for each log level
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
This article explains how to create an individual file for each log level (e.g. DEBUG, INFO, WARN, ERROR) of the Fisheye/Crucible logs.
Solution
Locate and open for edit the
log4j.xml
file available in the FISHEYE_HOME folder.The current destination folder path for all log levels assigned to the "value" variable of the "baseFile" parameter. The default value is the following:
1
<param name="baseFile" value="${fisheye.inst}/var/log/atlassian-fisheye.log"/>
Replace the value with a new destination path, for example:
Error log:
1 2 3 4 5 6 7 8
<appender name="fisheye_errorlog" class="com.cenqua.fisheye.logging.DailyRollingFileAppender"> <param name="baseFile" value="${fisheye.inst}/var/log/fisheye-error.log"/> <param name="keepDays" value="7"/> <param name="Threshold" value="WARN"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{ISO8601} %-5p [%t] %c %C-%M - %m\n"/> </layout> </appender>
Debug log:
1 2 3 4 5
<appender name="fisheye_debuglog" class="com.cenqua.fisheye.logging.DailyRollingFileAppender"> <param name="baseFile" value="${fisheye.inst}/var/log/fisheye-debug.log"/> <param name="keepDays" value="7"/> ... </appender>
If you are changing the path, the user running Fisheye/Crucible must have write permission to create these files inside the new path.
Was this helpful?