Перейти к содержимому
Mineforgian

Async Logger

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

266K загрузок38 подписчиковLGPL-3.0-onlyfabricforgeneoforgequilt

Обновлён 2 июля 2026 г. · опубликован 21 марта 2026 г.

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.

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
2.1.2+26.1.2-neoforgeРелиз26.1, 26.1.1, 26.1.2, 26.2neoforge2 июля 2026 г..jar (567 КБ)
2.1.2+26.1.2-fabricРелиз26.1, 26.1.1, 26.1.2, 26.2fabric, quilt2 июля 2026 г..jar (566 КБ)
2.1.2+1.21.11-neoforgeРелиз1.21.10, 1.21.11neoforge2 июля 2026 г..jar (567 КБ)
2.1.2+1.21.11-fabricРелиз1.21.8, 1.21.9, 1.21.10, 1.21.11fabric, quilt2 июля 2026 г..jar (578 КБ)
2.1.2+1.21.1-neoforgeРелиз1.21.5, 1.21.6, 1.21.7, 1.21.8neoforge2 июля 2026 г..jar (571 КБ)
2.1.2+1.20.1-forgeРелиз1.20.1forge2 июля 2026 г..jar (1.2 МБ)
2.1.2+1.20.1-fabricРелиз1.21.1, 1.21.2, 1.21.3, 1.21.4fabric, quilt2 июля 2026 г..jar (578 КБ)
2.1.2+1.19.2-forgeРелиз1.19.2forge2 июля 2026 г..jar (1.2 МБ)
2.1.2+1.18.2-forgeРелиз1.18.2forge2 июля 2026 г..jar (1.2 МБ)
2.1.1+26.1.2-neoforgeРелиз26.1, 26.1.1, 26.1.2, 26.2neoforge29 июня 2026 г..jar (567 КБ)
2.1.1+26.1.2-fabricРелиз26.1, 26.1.1, 26.1.2, 26.2fabric, quilt29 июня 2026 г..jar (566 КБ)
2.1.1+1.21.11-neoforgeРелиз1.21.10, 1.21.11neoforge29 июня 2026 г..jar (567 КБ)
2.1.1+1.21.11-fabricРелиз1.21.8, 1.21.9, 1.21.10, 1.21.11fabric, quilt29 июня 2026 г..jar (577 КБ)
2.1.1+1.21.1-neoforgeРелиз1.21.5, 1.21.6, 1.21.7, 1.21.8neoforge29 июня 2026 г..jar (571 КБ)
2.1.1+1.20.1-forgeРелиз1.20.1forge29 июня 2026 г..jar (1.2 МБ)

Показаны последние 15 из 89 версий. Все версии — на Modrinth.

Ченджлог

2.1.2+26.1.2-neoforgeРелиз26.1.1, 26.1.2, 26.2 · 2 июля 2026 г.
  • The noDebugLog config now cleans up archived debug logs (#13)
  • Fixed the issue where log format may appear different than without mod, like log name missing
2.1.2+26.1.2-fabricРелиз26.1.1, 26.1.2, 26.2 · 2 июля 2026 г.
  • The noDebugLog config now cleans up archived debug logs (#13)
  • Fixed the issue where log format may appear different than without mod, like log name missing
2.1.2+1.21.11-neoforgeРелиз1.21.10, 1.21.11 · 2 июля 2026 г.
  • The noDebugLog config now cleans up archived debug logs (#13)
  • Fixed the issue where log format may appear different than without mod, like log name missing
2.1.2+1.21.11-fabricРелиз1.21.9, 1.21.10, 1.21.11 · 2 июля 2026 г.
  • The noDebugLog config now cleans up archived debug logs (#13)
  • Fixed the issue where log format may appear different than without mod, like log name missing
2.1.2+1.21.1-neoforgeРелиз1.21.6, 1.21.7, 1.21.8 · 2 июля 2026 г.
  • The noDebugLog config now cleans up archived debug logs (#13)
  • Fixed the issue where log format may appear different than without mod, like log name missing
2.1.2+1.20.1-forgeРелиз1.20.1 · 2 июля 2026 г.
  • The noDebugLog config now cleans up archived debug logs (#13)
  • Fixed the issue where log format may appear different than without mod, like log name missing
2.1.2+1.20.1-fabricРелиз1.21.2, 1.21.3, 1.21.4 · 2 июля 2026 г.
  • The noDebugLog config now cleans up archived debug logs (#13)
  • Fixed the issue where log format may appear different than without mod, like log name missing
2.1.2+1.19.2-forgeРелиз1.19.2 · 2 июля 2026 г.
  • The noDebugLog config now cleans up archived debug logs (#13)
  • Fixed the issue where log format may appear different than without mod, like log name missing

Полная история изменений — на Modrinth.

Комментарии

Загружаем…