Log Filter

Filters configured messages from the log and console in a performant way.

Редакция NLZONE · 2 мин чтения · 1 просмотр
Log Filter
Скачать Log Filter1.21 – 1.21.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Filters configured messages from the log and console in a performant way.

  • Тип: мод
  • Загрузчик: fabric, forge, neoforge
  • Версии Minecraft: 1.21 – 1.21.1
  • Скачиваний на Modrinth: 1 895

Подробно

Filters configured messages from the log and console in a performant way. This is intended to be used by pack creators. Consider NOT send modified logs to mod creators if you're reporting bugs.

Usage Below is a commented config file ("logfilter.json") to remove all logging of datapack loading failure. This can be useful if a datapack removes recipes by e.g. replacing them with empty files. To use this, you need to remove the comments! json { "logEvents": "NONE", //Setting this to "INFO" will change ALL messages logged into a format useful to configure this mod (see below) "rules": [ // Array of rules. If a rule matches, the message will not be logged { "level": [ // Array of levels. These are combined by AND within a rule. { "relation": "EQUAL", // Relation (Supports EQUAL, NOTEQUAL, GREATERTHAN, etc.) "value": "ERROR" // Value must be a valid level } ], "loggerName": [ // Array of logger names { "relation": "MATCH", // Relation "value": "net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener" // Class } ], "formatMessage": [ // The message with formatting not applied (with the placeholders instead of values) { "relation": "MATCH", "value": "Couldn't parse data file {} from {}" } ], "parameterClasses": [ // Types of parameters/placeholders { "0": { // First placeholder "relation": "MATCH", "value": "net.minecraft.resources.ResourceLocation" }, "1": { // Second placeholder "relation": "MATCH", "value": "net.minecraft.resources.ResourceLocation" }, "2": { // Etc. "relation": "MATCH", "value": "com.google.gson.JsonParseException" } } ] } ] }

If "logEvents" is set, all log messages will be transformed:

[20:18:10] [modloading-worker-0/INFO] [Log Filter/]: Logging event: - Level: INFO - Logger name: mezz.jei.library.load.PluginCaller - Thread name: modloading-worker-0 - Throwable class: null - Message: Sending ConfigManager... - Format message: {}... - Parameter classes: [java.lang.String]

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также