Mod

Log Filter

Quick rating

Log Filter

No reviews yet

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

No Theme
No Genre
QoL & Tweaks
Server Utility
Mod Loaders
Forge
NeoForge
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Optional

About

Project Details

Type
Mod
License
MIT License
Latest Version
log_filter-fabric-1.21-1.0.0.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Log Filter


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 ("log_filter.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! The CF page render seems to have a problem with code blocks, so paste it into a editor that supports json formatting I guess.

{
  "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, NOT_EQUAL, GREATER_THAN, 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]

Log Filter

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 ("log_filter.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!

{
  "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, NOT_EQUAL, GREATER_THAN, 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]

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~2,000
Total Downloads
CurseForge
<1,000
Modrinth
~1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync