ModsFinder

BlameLog

by constellation

With BlameLog, a method that logs a message can prepend the name of its caller, class or method to the line, so the origin of each entry is visible at a glance.

FabricClient or server, optionalMIT LicenseOpen source1.18 – 1.21.1

What it does

BlameLog is a Fabric utility that patches the Logger so that messages written by a method carry information about the code that called it. The output can include the full class name, the simple class name with the package left off, the method name, the method parameters and the method return type. Each part is a separate option, so a log line can show as much or as little of its origin as the reader needs.

The mod is a proof-of-concept that patches Loggers to prepend method callers, and it is useful when tracing which code path produced a given message. It is open source under the MIT License and is published for Fabric only, across 17 release versions covering 1.18 – 1.21.1. Dark Matter is bundled inside the mod, so no separate install is needed for it. Either side can run it, and neither needs it.

Key features

  1. Caller prefix on log lines

    Log messages written through the Logger get a prefix naming the method that called them.

  2. Full or simple class names

    The prefix can use the full class name or the simple name, and the package can be dropped from the output.

  3. Method name and parameters

    Options add the method name, its parameter list and its return type to each prefix.

  4. Bundled Dark Matter

    The Dark Matter library ships inside the mod, so the Fabric build works without installing it separately.

Compatibility

Latest build for each game version and loader.

1.21.x2 of 2 versions with builds
1.21.10.5.0-1.18.2-build.14
1.210.5.0-1.18.2-build.14
1.20.x7 of 7 versions with builds
1.20.60.5.0-1.18.2-build.14
1.20.50.5.0-1.18.2-build.14
1.20.40.5.0-1.18.2-build.14
1.20.30.5.0-1.18.2-build.14
1.20.20.5.0-1.18.2-build.14
1.20.10.5.0-1.18.2-build.14
1.200.5.0-1.18.2-build.14
1.19.x5 of 5 versions with builds
1.19.40.5.0-1.18.2-build.14
1.19.30.5.0-1.18.2-build.14
1.19.20.5.0-1.18.2-build.14
1.19.10.5.0-1.18.2-build.14
1.190.5.0-1.18.2-build.14
1.18.x3 of 3 versions with builds
ReleaseBetaAlphaNot available

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

Requirements

Dependencies declared by the latest file for each loader.

Embedded 1

Dark MatterJust another Boring library mod.
Embedded

Use cases

Tracing log origins

Developers can see which class and method wrote a line without adding extra logging by hand.

Who it’s for: Mod developers and people debugging a Fabric setup who read the game log often want to see which class and method wrote each line, and the prefix options let them choose how much of that origin appears in the output.

How it compares

Full comparison

Client Data Command is client-side only, open source under the MIT License and published for Fabric for 1.21 – 1.21.5, so it adds commands on a client and nothing on a server. Packet Logger is also client-side only and open source under the MIT License, but its Fabric files cover 1.16.2 – 1.18.2, a range that ends before the versions BlameLog targets. Here 'n' There runs on Fabric and NeoForge for 1.21 – 26.3 under the Apache License 2.0, and its environment is client-side only too.

ModLoadersGame versionsEnvironmentUpdated
BlameLogFabric1.18 – 1.21.1Client or server, optional2024-08-02
Client Data CommandFabric1.21 – 1.21.5Client-side only2024-08-20
Packet LoggerFabric1.16.2 – 1.18.2Client-side only2024-01-15
Here 'n' ThereFabric and NeoForge1.21 – 26.3Client-side only2026-09-15

Questions

Does BlameLog need to be installed on a server?

No. Either side can run it, and neither needs it, so installing it on one side is enough and it can be left off the other.

Which loader does BlameLog support?

Fabric is the only loader with files for BlameLog, so it cannot be used on Forge or NeoForge.

Is Dark Matter needed alongside BlameLog?

No. Dark Matter is bundled inside the mod, so there is no separate file to add.

In the catalog

BlameLog is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 32,366 mods support Minecraft 1.21.1.

More from constellation

All projects

Similar mods

What the author says

This is a proof-of-concept mod, which patches Loggers to prepend method callers. This mod offers additional configuration via config/blamelog-pattern.txt, where you can set the pattern for the logger. Default is [{simpleClass}#{method}] {message}
constellation, on the Modrinth page

Official listing

Owner
constellation
Published
2023-04-15
Updated on Modrinth
2024-08-02
Facts verified
2026-10-15

Tags