ModsFinder

Better Log4j Config

by Pixelstormer

Better Log4j Config reconfigures Log4j automatically on Fabric and Quilt so that each log line shows the name of the mod that wrote it.

FabricQuiltClient or server, optionalApache License 2.0Open source1.14 – 1.21.5

What it does

Minecraft writes its logs through Log4j, and most mods write there too, but the default format does not say which mod produced a given message. The mod replaces that formatting at startup, so the mod name is added to every entry and logs become easier to read without a reliable way to tell mods apart by hand. Some mods try to fix this one by one, and the screenshots in the author's notes show those attempts alongside this approach.

The format can be customised further through a config file, better-log4j-config.xml, placed in the mod config directory. The mod works from 1.14 onward on Fabric and Quilt. Forge already includes its own way to reconfigure Log4j, and the author plans to port the mod there. The code is open source under the Apache License 2.0, and files are published for 1.14 – 1.21.5.

Because the mod changes how logging is set up, it sits on the logging system itself rather than on any gameplay. Either side can run it, and neither a client nor a server needs it. It is not required by any other mod listed in the catalog.

Key features

  1. Mod name in each log line

    Every log message is prefixed with the name of the mod that produced it, so entries can be traced back to their source.

  2. Automatic reconfiguration

    Log4j is reconfigured when the game starts, without a manual change to the logging setup.

  3. Custom format file

    The log layout is set in a config file in the mod config directory, with a default better-log4j-config.xml included.

  4. Readable logs

    A small change to the output makes logs significantly easier to read, especially when many mods write messages at once.

Compatibility

Latest build for each game version and loader.

1.21.x6 of 6 versions with builds
1.21.51.2.01.2.0
1.21.41.2.01.2.0
1.21.31.2.01.2.0
1.21.21.2.01.2.0
1.21.11.2.01.2.0
1.211.2.01.2.0
1.20.x7 of 7 versions with builds
1.20.61.2.01.2.0
1.20.51.2.01.2.0
1.20.41.2.01.2.0
1.20.31.2.01.2.0
1.20.21.2.01.2.0
1.20.11.2.01.2.0
1.201.2.01.2.0
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

Only full game releases are shown. This mod publishes no snapshot builds.

How it compares

Full comparison

no-clearchat-on-reconfigure is a Fabric mod for 1.20.2 – 1.20.4 that is client-side only and open source under the MIT License, so it covers a narrow version range and does not work on servers. Console Filter Next runs on Fabric, Forge, NeoForge and Legacy Fabric for 1.8.9 – 26.3 and is not open source, since it is licensed under Creative Commons Attribution Non Commercial Share Alike 4.0. Book Formatting is a client-side only Fabric mod for 1.19.3 – 1.21.5 under the CC0 1.0 Universal license, a different kind of tool rather than a logging change.

ModLoadersGame versionsEnvironmentUpdated
Better Log4j ConfigFabric and Quilt1.14 – 1.21.5Client or server, optional2023-08-29
no-clearchat-on-reconfigureFabric1.20.2 – 1.20.4Client-side only2023-12-09
Console Filter NextFabric, Forge, NeoForge and Legacy Fabric1.8.9 – 26.3Client or server, optional2026-10-03
Book FormattingFabric1.19.3 – 1.21.5Client-side only2024-04-15

Questions

Does Better Log4j Config need Fabric API?

No required dependency is listed for Fabric and Quilt. Check the file page before installing it on a modpack.

Does the server need Better Log4j Config?

No. Either side can run it, and neither a client nor a server needs it, so it can be installed on a client, a server or both.

Which Minecraft versions does Better Log4j Config support?

Files target 1.14 – 1.21.5, and the latest Fabric and Quilt builds are version 1.2.0 for 1.21.5, published on 2023-08-29.

In the catalog

Better Log4j Config is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 15,307 mods support Minecraft 1.21.5.

More from Pixelstormer

All projects

Similar mods

What the author says

A simple mod for Quilt and Fabric to automatically reconfigure Log4j to improve the formatting of log messages. This mod is no longer being developed. It will (almost) definitely continue working for future versions of Minecraft, but the supported versions list may become outdated.
Pixelstormer, on the Modrinth page

Official listing

Owner
Pixelstormer
Published
2023-05-23
Updated on Modrinth
2023-08-29
Facts verified
2026-10-15

Tags