Async Logger Mod 1.0–26.3
MODAsync Logger is a Minecraft modification designed to make logging operations asynchronous. In the standard game, logging operations, including input/output, occur on the logging thread. This mod alters this process to be asynchronous, which can improve performance, particularly when extensive messages are logged or debug logging is active. Starting with version 2.0.0, the mod also incorporates log filtering. This filtering is executed on a dedicated, asynchronous logger thread, which prevents any performance overhead for the caller.
Async Logger is a Minecraft modification designed to make logging operations asynchronous. In the standard game, logging operations, including input/output, occur on the logging thread. This mod alters this process to be asynchronous, which can improve performance, particularly when extensive messages are logged or debug logging is active. Starting with version 2.0.0, the mod also incorporates log filtering. This filtering is executed on a dedicated, asynchronous logger thread, which prevents any performance overhead for the caller.
The mod enables filtering by logger name, logging level, and message content, supporting substring or regular expression matching. To activate these features, users must set a specific option in the configuration and then modify the desired filters. Asynchronous loggers are utilized over asynchronous appenders for their improved speed and reduced allocation rate. Async Logger requires LMAX Disruptor, a library for lock-free inter-thread communication. The mod will load this library if it is not already present, redistributing it under the Apache-2.0 License. The mod's configuration file provides control over certain log4j2 settings.
