Back to mods
Async Logger project artwork

Modrinth · Minecraft mod

Async Logger

Asynchronous logging and efficient filtering - performance improvements and utility for keeping your logs clean

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

Quick answer

Which Async Logger release should I use?

Updated 13 days ago
Latest stable file 2.2.1+26.1.2-neoforge
Game version 26.1, 26.1.1, 26.1.2
Loader NeoForge

Async Logger 2.2.1+26.1.2-neoforge targets 26.1, 26.1.1, 26.1.2 with NeoForge. It must be installed on the client. Do not install it on the dedicated server. No extra mods listed for this file.

Where it goes

Is Async Logger required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

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

This file is marked client-only.

What else does Async Logger 2.2.1+26.1.2-neoforge need?

2.2.1+26.1.2-neoforge. Change the file and its required mods may change too.

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 Async Logger without breaking your instance.

Built for Async Logger 2.2.1+26.1.2-neoforge. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 2.2.1+26.1.2-neoforge. It targets 26.1, 26.1.1, 26.1.2 with NeoForge; 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

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 2.2.1+26.1.2-neoforge. It opens that exact file at the source.

About this project

What does Async Logger add?

Async Logger is a Minecraft mod that makes logging operations asynchronous.

In vanilla, loggers are not asynchronous. This means the actual logging operations, including I/O operations, happen on the logging thread. This mod changes logging to be asynchronous for better performance.

This can be especially useful when large amounts of messages are being logged and/or debug logging is enabled (default on Forge / NeoForge).

Benchmarks

Item Vanilla AsyncLogger
Simple Messages (10k) 6146.1ms 141.2ms
Messages with Placeholders (10k) 6413.2ms 96.6ms
Messages with Throwable (1.5k) 19572.4ms 9.0ms

You can do these tests yourself by enabling testPerformance in the config. When this option is enabled, the mod will log a large number of messages both before and after setting up async loggers. You can see the test results in the log.

Filtering

Starting from version 2.0.0, AsyncLogger supports log filtering. The filtering happens on the dedicated, async logger thread, ensuring there is no overhead for the caller.

To use, simply set filtering.enabled to true in the config, and edit one or more of the filters. Filtering by logger name, level, and message (match substring or regexps) is supported.

Technical Details

  • Asynchronous loggers are used, in favor of Asynchronous appenders. The former is newer, faster and lighter on allocation rate.
    • Asynchronous loggers require LMAX Disruptor, a lock-free inter-thread communication library. The mod will load the library onto the system classloader when it is not present. This mod redistributes LMAX Disruptor under the Apache-2.0 License.
  • The config file allows easy control of some log4j2 settings.
  • System.out and System.err can be redirected to loggers.

Project description from Modrinth.

Pick your setup

Async Logger by Minecraft version and loader

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

88 available setups

Showing the newest 12 of 38 game versions. Older files are in the list below.

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

Recent files

Async Logger versions and loaders

100 of 100 releases match

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