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

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

This article explains how to create an individual file for each log level (e.g. DEBUG, INFO, WARN, ERROR) of the Fisheye/Crucible logs.

ソリューション

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

最終更新日 2018 年 7 月 31 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.