<-- Back

How to customize log file rotation in Mendix Service Console

Introduction

This article explains how to configure log file rotation for Mendix applications running on-premises using Mendix Service Console. By default, log files can grow indefinitely without automatic rotation, potentially consuming excessive disk space. This guide demonstrates how to split the application.log file based on specific size limits and file count thresholds using Runtime Custom settings.

Environment

Applications hosted in On-Premises

Instructions

To customize log file rotation for on-premises Mendix applications, follow these steps:

  1. Access the application's Runtime Custom settings.

  2. Configure the following log file settings:

    • MaxLogFileSize: Set the maximum size of a log file before it triggers rotation.

    • MaxLogFileCount: Set the maximum number of log files to keep.

  3. Save the configuration changes.

  4. Restart the Mendix application for the changes to take effect.

Outcome

Once configured, when a log file reaches the specified MaxLogFileSize, the system will create a new log file and rotate the old one. The rotation will continue until the MaxLogFileCount is reached, after which the oldest log file will be deleted to make room for new ones.

Internal information related

226850

Additional information

Mendix documentation: Log File Settings

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.