How to create a Fisheye/Crucible individual file for each log level

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

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:

<param name="baseFile" value="${fisheye.inst}/var/log/atlassian-fisheye.log"/>

 

  • Replace the value with a new destination path, for example:

    Error log:

    <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:

    <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.

Last modified on Jul 31, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.