Async Logger modu hakkında
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.
Async Logger nasıl kurulur
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.12.2–26.3 on Fabric, Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file asynclogger-2.2.3+26.3-neoforge.jar (572 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: Async Logger should be in the list.
Async Logger works on the player’s side only: there is no need to install it on a server.
Sürümler
Bağımlılıklarla
| Minecraft | Yükleyici | Dosya | Tarih | İşlemler |
|---|---|---|---|---|
| 26.3 | NeoForge | 26.3572 KB 1 | ||
| 26.2 | NeoForge | 26.2572 KB | ||
| 26.3 | Fabric | 26.3571 KB 2 | ||
| 1.21.11 | NeoForge | 1.21.11572 KB | ||
| 1.21.11 | Fabric | 1.21.11582 KB 1 | ||
| 1.21.8 | NeoForge | 1.21.8576 KB 2 | ||
| 1.20.1 | Forge | 1.20.11.2 MB | ||
| 1.21.4 | Fabric | 1.21.4582 KB |
SSS
Which Minecraft versions does Async Logger work on?
There are files for 1.12.2–26.3, 31 versions in total. The newest is 26.3.
Is Async Logger for Forge or Fabric?
There are files for Fabric: 1.18.2–26.3, for Forge: 1.12.2–1.20.1 and for NeoForge: 1.21–26.3.
Does Async Logger need other mods?
The author lists no required dependencies: the Fabric, Forge or NeoForge loader is enough.
Do I need to install Async Logger on a server?
No. Async Logger works on the player’s side only: there is no need to install it on a server.
Where can I download Async Logger safely?
On this page: the file asynclogger-2.2.3+26.3-neoforge.jar (572 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: 0964a7480fe139bb4ae2b53548ffdfab8c007c84.
Yorumlar
Async Logger için ilk puanı sen ver


