Перейти к содержимому
Mineforgian

BlameLog

Prepends method callers to log messages

22K загрузок38 подписчиковMITfabric

Обновлён 2 августа 2024 г. · опубликован 15 апреля 2023 г.

  • Banner Image

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.

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
0.5.0-1.18.2-build.14Бета1.20.5, 1.20.6, 1.21, 1.21.1fabric2 августа 2024 г..jar (128 КБ)
0.4.1-1.18.2-build.50Релиз1.20.4, 1.20.5, 1.20.6, 1.21fabric12 апреля 2024 г..jar (114 КБ)
0.4.0-1.18Релиз1.20.1, 1.20.2, 1.20.3, 1.20.4fabric16 декабря 2023 г..jar (155 КБ)
0.3.2-1.18Релиз1.19.4, 1.20, 1.20.1, 1.20.2fabric16 августа 2023 г..jar (420 КБ)
0.2.2-1.18Бета1.19.3, 1.19.4, 1.20, 1.20.1fabric30 апреля 2023 г..jar (425 КБ)

Ченджлог

0.5.0-1.18.2-build.14Бета1.20.6, 1.21, 1.21.1 · 2 августа 2024 г.

What's new:

  • Updated Dark Matter to fix a crash.
  • Some minor internal refactors.
0.4.1-1.18.2-build.50Релиз1.20.5, 1.20.6, 1.21 · 12 апреля 2024 г.

What's new:

  • Updated Dark Matter
0.4.0-1.18Релиз1.20.2, 1.20.3, 1.20.4 · 16 декабря 2023 г.

What's new:

  • 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
0.3.2-1.18Релиз1.20, 1.20.1, 1.20.2 · 16 августа 2023 г.

What's new:

  • Updated Dark Matter
0.2.2-1.18Бета1.19.4, 1.20, 1.20.1 · 30 апреля 2023 г.

What's new:

  • Better Mixin handling. Now net.minecraft is 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 Logging 2. If a method is called log.

Полная история изменений — на Modrinth.

Комментарии

Загружаем…