BlameLog

BlameLog

Prepends method callers to log messages

22 402 downloads 35 followers

BlameLog

Blaming logs since 2023.

Follow on Bluesky

What's this?

This is a proof-of-concept mod, which patches Loggers to prepend method callers.

Wondering which mod printed this?

[02:16:21] [Render thread/INFO]: Trying to read config file...
[02:16:21] [Render thread/INFO]: A config file was found, loading it..
[02:16:21] [Render thread/INFO]: Successfully loaded config file.

Well, now you know!

[02:16:21] [Render thread/INFO]: [me.luligabi.noindium.NoIndium#createConfig] Trying to read config file...
[02:16:21] [Render thread/INFO]: [me.luligabi.noindium.NoIndium#createConfig] A config file was found, loading it..
[02:16:21] [Render thread/INFO]: [me.luligabi.noindium.NoIndium#createConfig] Successfully loaded config file.

Config

This mod offers additional configuration via config/blamelog-pattern.txt, where you can set the pattern for the logger. Default is [{simpleClass}#{method}] {message}

  • class Inserts the full class name.
  • simpleClass Inserts the "simple" class name. (Without the package)
  • method Inserts the method name.
  • methodParams Inserts method parameters.
  • methodReturnType Inserts method return type.
Version Minecraft Loader Download

0.5.0 (1.18-1.21)

0.5.0-1.18.2-build.14

1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1
fabric
Download

0.4.1 (1.18-1.21)

0.4.1-1.18.2-build.50

1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21
fabric
Download

0.4.0 (1.18-1.20.4)

0.4.0-1.18

1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4
fabric
Download

0.3.2 (1.18-1.20.2)

0.3.2-1.18

1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2
fabric
Download

0.2.2 (1.18-1.20)

0.2.2-1.18

1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1
fabric
Download