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.
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
Access-based cleaning
Files are judged by their latest access of any kind, so a log still being read is never removed by mistake.
Configurable age limit
The daysOld option sets how many days a log must go unused before deletion; it defaults to 14.
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
1.21.x12 of 12 versions with builds
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
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
How it compares
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.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Log Cleaner | Fabric and Quilt | 1.14 – 26.2 | Client or server, optional | 2022-09-25 |
| LogsBeGone | Fabric and Quilt | 1.14 – 1.21 | Client or server, optional | 2025-01-21 |
| Better Log4j Config | Fabric and Quilt | 1.14 – 1.21.5 | Client or server, optional | 2023-08-29 |
Questions
Does Log Cleaner need to be installed on a server?
How is an unused log file determined?
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
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.
Official listing
- Modrinth page
- modrinth.com/mod/log-cleaner
- Owner
- altrisi
- Published
- 2022-09-15
- Updated on Modrinth
- 2022-09-25
- Facts verified
- 2026-10-15
