fanruan.log Optimization

  • Last update:March 07, 2022
  • Ⅰ. Overview

    1. Version


    Report server versionJAR version
    Function Update
    10.0
    2019-05-20
     fanruan.log periodic file compression


    2. Scenarios

    It is convenient for users to read the log record template name; reduce disk usage.

    Note:This document mainly introduces users who have customized log4j configuration, how to modify the log4j.properties file, so as to achieve the purpose of regular compression of the fanruan.log file.

    For an introduction to the output logic of fanruan.log,please refer to:fanruan.log output logic Introduction


    3.Feature Introduction

    • If the customer uses the upgrade tool to upgrade or directly install the JAR package to the 2019-05-20 and later versions, the system will compress fanruan.log at 0:00 every day to save disk space.

    • If customers upgrade by replacing the JAR, they can directly delete the log4j.properties file to realize the log file timing compression function.

    • If users need to customize the log4j configuration requirements, it is recommended to change the settings based on the log4j.properties file we gave, and put them in the specified directory, refer to the Operation in this doc.                 

    Ⅱ. Operation

    1. Open File

    If users need to customize the log4j configuration, they need to modify the log4j.properties file.

    File path:%FR_HOME%\webapps\webroot\WEB-INF\config\log4j.properties

    Open file with text editor, as shown follow

    2. Modify Log

    Replace file content with file in attachment:log4j.zip

    The specific modification content  as shown follow

    1)Before file modification

    1)After file modification

    3. Save and Preview

    After the file modification is saved, restart the report service and change the log level. The system triggers to read the log4j configuration file.

    File folder:%FR_HOME%\logs\fanruan.log

    1) The output fanruan.log file will be compressed automatically so as not to occupy large disk space. As shown below:

    Note:The log of the previous day is compressed at zero o'clock every day.

    2)Open fanruan.log,the template name will be recorded in the log. As shown below:

    Note:Mobile terminal is not supported yet.

    Attachment List


    Theme: Decision-making Platform
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy