Skip to main content

Log Janitor

The log janitor removes old server log files from logs/server/ each time the server starts. These settings allow the user to alter the default cleanup behavior. For example, you may want logs to be cleaned up sooner or keep log files around longer.

log_janitor:
max_files: 20
  • max_files (Default: 20)
    The maximum number of log files to keep, including the two files the server is writing to. If there are more log files than the max allowed here, Log Janitor will remove the oldest log files. The minimum is 0. A value of 2 or less keeps only the files of the current run.