All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Async Logger

Async Logger

by decce6 • Downloads: 235 • Followers: 0
Description
Gallery
Changelog
Versions

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.

How to Install Async Logger (Mod)

Async Logger by decce6 is verified for Fabric, Forge, Neoforge, Ornithe, Quilt across Minecraft versions 1.0, 1.1, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2 (latest release: 2.2.2+26.1.2-neoforge, file size: 571 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.0, 1.1, 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2) and platform (Fabric, Forge, Neoforge, Ornithe, Quilt).
  2. Make sure you have the compatible loader or environment installed for Fabric, Forge, Neoforge, Ornithe, Quilt.
  3. Move the downloaded Async Logger file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3 26.2 26.1.x
Neoforge
2mo ago 129
26.3 26.2 26.1.x
Fabric
2mo ago 65
1.21.x
Neoforge
2mo ago 43
1.21.x
Fabric
2mo ago 32
1.21.x
Neoforge
2mo ago 26
1.20.1
Forge
2mo ago 22
1.21.x 1.20.x 1.19.x +1
Fabric
2mo ago 18
1.19.2
Forge
2mo ago 16
1.18.2
Forge
2mo ago 14
1.16.5
Forge
2mo ago 13
1.16.5
Fabric
2mo ago 12
1.12.2
Forge
2mo ago 11
1.14.x 1.13.x 1.12.x +12
Ornithe
2mo ago 10
26.2 26.1.x
Neoforge
2mo ago 9
26.3.x 26.2 26.1.x
Fabric Quilt
2mo ago 9
1.21.x
Neoforge
2mo ago 8
1.21.x
Fabric Quilt
2mo ago 8
1.21.x
Neoforge
2mo ago 7
1.20.1
Forge
2mo ago 7
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 6
1.19.2
Forge
2mo ago 6
1.18.2
Forge
2mo ago 6
1.16.5
Forge
2mo ago 6
1.16.5
Fabric Quilt
2mo ago 5
1.12.2
Forge
2mo ago 5
26.2 26.1.x
Neoforge
2mo ago 5
26.2 26.1.x
Fabric Quilt
2mo ago 5
1.21.x
Neoforge
2mo ago 5
1.21.x
Fabric Quilt
2mo ago 4
1.21.x
Neoforge
2mo ago 4
1.20.1
Forge
2mo ago 4
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 4
1.19.2
Forge
2mo ago 4
1.18.2
Forge
2mo ago 4
1.16.5
Forge
2mo ago 4
1.16.5
Fabric Quilt
2mo ago 4
1.12.2
Forge
2mo ago 3
26.2 26.1.x
Neoforge
2mo ago 3
26.2 26.1.x
Fabric Quilt
2mo ago 3
1.21.x
Neoforge
2mo ago 3
1.21.x
Fabric Quilt
2mo ago 3
1.21.x
Neoforge
2mo ago 3
1.20.1
Forge
2mo ago 3
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 3
1.19.2
Forge
2mo ago 3
1.18.2
Forge
2mo ago 3
26.2 26.1.x
Neoforge
2mo ago 3
26.2 26.1.x
Fabric Quilt
2mo ago 3
1.21.x
Neoforge
2mo ago 3
1.21.x
Fabric Quilt
2mo ago 3
1.21.x
Neoforge
2mo ago 3
1.20.1
Forge
2mo ago 2
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 2
1.19.2
Forge
2mo ago 2
1.18.2
Forge
2mo ago 2
26.2 26.1.x
Neoforge
2mo ago 2
26.2 26.1.x
Fabric Quilt
2mo ago 2
1.21.x
Neoforge
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Neoforge
2mo ago 2
1.20.1
Forge
2mo ago 2
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 2
1.19.2
Forge
2mo ago 2
1.18.2
Forge
2mo ago 2
26.2 26.1.x
Neoforge
2mo ago 2
26.2 26.1.x
Fabric Quilt
2mo ago 2
1.21.x
Neoforge
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Neoforge
2mo ago 2
1.20.1
Forge
2mo ago 2
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 2
1.19.2
Forge
2mo ago 2
1.18.2
Forge
2mo ago 2
26.2 26.1.x
Neoforge
2mo ago 2
26.2 26.1.x
Fabric Quilt
2mo ago 2
1.21.x
Neoforge
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Neoforge
2mo ago 2
1.20.1
Forge
2mo ago 2
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 2
1.19.2
Forge
2mo ago 2
1.18.2
Forge
2mo ago 2
26.2 26.1.x
Neoforge
2mo ago 2
26.2 26.1.x
Fabric Quilt
2mo ago 2
1.21.x
Neoforge
2mo ago 2
1.21.x
Fabric Quilt
2mo ago 2
1.21.x
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 1
1.19.2
Forge
2mo ago 1
1.18.2
Forge
2mo ago 1
26.1.x
Neoforge
2mo ago 1
26.1.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.x 1.20.x 1.19.x +1
Fabric Quilt
2mo ago 1
1.19.2
Forge
2mo ago 1
1.18.2
Forge
2mo ago 1
26.1.x
Neoforge
2mo ago 1
26.1.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.x 1.20.x
Fabric Quilt
2mo ago 1
26.1.x
Neoforge
2mo ago 1
26.1.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.x 1.20.x
Fabric Quilt
2mo ago 1
26.1.x
Neoforge
2mo ago 1
26.1.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.x 1.20.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.21.x
Fabric Quilt
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.20.1
Forge
2mo ago 1
1.21.x 1.20.x
Fabric Quilt
2mo ago 1
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash when filtering.sysout is set to true
  • Added Ornithe support (independent of Minecraft version)
  • Fixed game crash at startup when path contains special character
  • Fixed game crash at startup when path contains special character
Async Logger Icon
Download Async Logger
Select game version
Select platform