Back to mods
Log Filter project artwork

CurseForge · Minecraft mod

Log Filter

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Log Filter release matches 1.21 Forge?

Updated 2 years ago
Best match for your filters Log Filter-forge-1.21-1.0.0.jar
Game version 1.21, 1.21.1
Loader Forge

Log Filter-forge-1.21-1.0.0.jar targets 1.21, 1.21.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Log Filter required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Log Filter-forge-1.21-1.0.0.jar need?

Log Filter-forge-1.21-1.0.0.jar on 1.21 Forge. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Log Filter without breaking your instance.

Built for Log Filter-forge-1.21-1.0.0.jar on 1.21 Forge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Log Filter-forge-1.21-1.0.0.jar. It targets 1.21, 1.21.1 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Log Filter-forge-1.21-1.0.0.jar. It opens that exact file at the source.

About this project

What does Log Filter add?

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]

Project description from CurseForge.

Pick your setup

Log Filter by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

6 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Log Filter versions and loaders

1 of 3 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.