ModsFinder

Log Cleaner

by altrisi

Log Cleaner deletes old log files from the game directory once they have gone unused for a set number of days.

FabricQuiltClient or server, optionalGNU General Public License v3.0 onlyOpen source1.14 – 26.2

What it does

The mod checks log files and removes those not accessed within the configured period. Access is judged by the latest read or write rather than creation date, so logs still in use are kept. The default threshold is 14 days, and the value can be changed to any number of days. Log Cleaner is open source under the GNU General Public License v3.0 only, and it works on Fabric and Quilt. It works on either side, and neither needs it.

Key features

  1. Access-based cleaning

    Files are judged by their latest access of any kind, so a log still being read is never removed by mistake.

  2. Configurable age limit

    The daysOld option sets how many days a log must go unused before deletion; it defaults to 14.

  3. Optional deletion report

    The silent option, false by default, controls whether the number of deleted log files is written to the log.

Compatibility

Latest build for each game version and loader.

26.x4 of 4 versions with builds
26.21.0.01.0.0
26.1.21.0.01.0.0
26.1.11.0.01.0.0
26.11.0.01.0.0
1.21.x12 of 12 versions with builds
1.21.111.0.01.0.0
1.21.101.0.01.0.0
1.21.91.0.01.0.0
1.21.81.0.01.0.0
1.21.71.0.01.0.0
1.21.61.0.01.0.0
1.21.51.0.01.0.0
1.21.41.0.01.0.0
1.21.31.0.01.0.0
1.21.21.0.01.0.0
1.21.11.0.01.0.0
1.211.0.01.0.0
1.20.x7 of 7 versions with builds
1.19.x5 of 5 versions with builds
1.18.x3 of 3 versions with builds
1.17.x2 of 2 versions with builds
1.16.x6 of 6 versions with builds
1.15.x3 of 3 versions with builds
1.14.x5 of 5 versions with builds
ReleaseBetaAlphaNot available

This mod also publishes snapshot builds. Snapshots are not shown in the matrix.

How it compares

Full comparison

LogsBeGone is an MIT-licensed, open source mod for Fabric and Quilt across 1.14 – 1.21, and it works on either side, and neither needs it. Better Log4j Config is also open source and runs on Fabric and Quilt for 1.14 – 1.21.5, but it is released under the Apache License 2.0.

ModLoadersGame versionsEnvironmentUpdated
Log CleanerFabric and Quilt1.14 – 26.2Client or server, optional2022-09-25
LogsBeGoneFabric and Quilt1.14 – 1.21Client or server, optional2025-01-21
Better Log4j ConfigFabric and Quilt1.14 – 1.21.5Client or server, optional2023-08-29

Questions

Does Log Cleaner need to be installed on a server?

It works on either side, and neither needs it, so it can run on a client alone, a server alone or both.

How is an unused log file determined?

The mod uses the latest access of any kind to the file, not its creation date, so logs still being read are kept.

In the catalog

Log Cleaner is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 13,894 mods support Minecraft 26.2.

More from altrisi

All projects

Similar mods

What the author says

A lightweight mod that cleans old, unused log files. The best thing is that this mod keeps files not based on creation date, but the most recent access (of any kind) to the file, so logs that are still being accessed for whatever reason are not removed unwillingly.
altrisi, on the Modrinth page

Official listing

Owner
altrisi
Published
2022-09-15
Updated on Modrinth
2022-09-25
Facts verified
2026-10-15

Tags