BlameLog
Blaming logs since 2023.
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}
classInserts the full class name.simpleClassInserts the "simple" class name. (Without the package)methodInserts the method name.methodParamsInserts method parameters.methodReturnTypeInserts method return type.
How to Install BlameLog (Mod)
BlameLog by zenfyr is verified for Fabric across Minecraft versions 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4 (latest release: 0.5.0-1.18.2-build.14, file size: 128 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded BlameLog file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Updated Dark Matter to fix a crash.
- Some minor internal refactors.
- Updated Dark Matter
- Added a very simple config to change the default pattern.
- Supported args are:
{class}- The full class name.{method}- The calling method.{simpleClass}- The simple class name. (without the package){methodParams}- Simple method parameter array.{methodReturnType}- The return type of the method.- The new default pattern is
[{simpleClass}#{method}] {message} - The old one is
[{class}#{method}] {message} - Fixed issues on Connector.
- Updated Dark Matter
- Updated Dark Matter
- Better Mixin handling. Now
net.minecraftis replaced by the mixin class if the method was injected. - These can get hilariously long:
[de.keksuccino.drippyloadingscreen.mixin.mixins.client.MixinLoadingOverlay#handler$enb000$drippyloadingscreen$onConstruct][net.mehvahdjukaar.supplementaries.mixins.SheetsClassloadingFixHackMixin#handler$mnf000$supplementaries$whyDoIHaveToDoThis]- Added 2 more checks, 1. If class name ends with
Logging2. If a method is calledlog.