Мова

Async Logger

Async Logger

Modrinth

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

928.8k завантажень 66 підписників оновлено 4d ago
остання v2.2.2+26.1.2-neoforge Modrinth
Fabric Forge Neoforge Ornithe Quilt 1.0 – 26.3-snapshot-5 OptimizationUtility

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.

Версії

Release
2.2.2+26.1.2-neoforge
neoforge · 26.1, 26.1.1, 26.1.2 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
131
Release
2.2.2+26.1.2-fabric
fabric · 26.1, 26.1.1, 26.1.2 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
30.1k
Release
2.2.2+1.21.11-neoforge
neoforge · 1.21.10, 1.21.11 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
15
Release
2.2.2+1.21.11-fabric
fabric · 1.21.8, 1.21.9, 1.21.10 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
5.7k
Release
2.2.2+1.21.1-neoforge
neoforge · 1.21, 1.21.1, 1.21.2 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
2.1k
Release
2.2.2+1.20.1-forge
forge · 1.20.1 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
1.2k
Release
2.2.2+1.20.1-fabric
fabric · 1.18.2, 1.19, 1.19.1 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
771
Release
2.2.2+1.19.2-forge
forge · 1.19.2 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
8
Release
2.2.2+1.18.2-forge
forge · 1.18.2 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
12
Release
2.2.2+1.16.5-forge
forge · 1.16.5 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
23
Release
2.2.2+1.16.5-fabric
fabric · 1.16.5 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
18
Release
2.2.2+1.12.2-forge
forge · 1.12.2 · 4d ago
- Fixed game crash when `filtering.sysout` is set to `true` - Added Ornithe support (independent of Minecraft version)
100

Коментарі 0

Поки немає коментарів. Будь першим, хто поділиться думкою.

FAQ

Як встановити Async Logger?

Завантажте файл під свою версію Minecraft і завантажувач із цієї сторінки, потім покладіть .jar у папку mods (або plugins) і запустіть гру.

Async Logger безкоштовний?

Async Logger можна завантажити безкоштовно на Modgrid — ми ведемо прямо до офіційного джерела.

Які версії Minecraft підтримує Async Logger?

Працює з Fabric, Forge, Neoforge, Ornithe. Підтримуються версії 1.0–26.3-snapshot-5. Перелік підтримуваних версій і завантажувачів — у блоці завантаження на цій сторінці.

Завантажити Async Logger

R 2.2.2+26.1.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 571 KB R 2.2.2+26.1.2-fabric 26.1, 26.1.1, 26.1.2 fabric 570 KB R 2.2.2+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 572 KB R 2.2.2+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric 582 KB R 2.2.2+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 576 KB R 2.2.2+1.20.1-forge 1.20.1 forge 1.2 MB R 2.2.2+1.20.1-fabric 1.18.2, 1.19, 1.19.1 fabric 582 KB R 2.2.2+1.19.2-forge 1.19.2 forge 1.2 MB R 2.2.2+1.18.2-forge 1.18.2 forge 1.2 MB R 2.2.2+1.16.5-forge 1.16.5 forge 1.3 MB R 2.2.2+1.16.5-fabric 1.16.5 fabric 582 KB R 2.2.2+1.12.2-forge 1.12.2 forge 563 KB R 2.2.2+1.8.9-ornithe 1.0, 1.1, 1.2.1 ornithe 581 KB R 2.2.1+26.1.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 571 KB R 2.2.1+26.1.2-fabric 26.1, 26.1.1, 26.1.2 fabric, quilt 570 KB R 2.2.1+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 572 KB R 2.2.1+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 582 KB R 2.2.1+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 576 KB R 2.2.1+1.20.1-forge 1.20.1 forge 1.2 MB R 2.2.1+1.20.1-fabric 1.18.2, 1.19, 1.19.1 fabric, quilt 582 KB R 2.2.1+1.19.2-forge 1.19.2 forge 1.2 MB R 2.2.1+1.18.2-forge 1.18.2 forge 1.2 MB R 2.2.1+1.16.5-forge 1.16.5 forge 1.3 MB R 2.2.1+1.16.5-fabric 1.16.5 fabric, quilt 582 KB R 2.2.1+1.12.2-forge 1.12.2 forge 563 KB R 2.2.0+26.1.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 571 KB R 2.2.0+26.1.2-fabric 26.1, 26.1.1, 26.1.2 fabric, quilt 570 KB R 2.2.0+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 572 KB R 2.2.0+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 582 KB R 2.2.0+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 576 KB R 2.2.0+1.20.1-forge 1.20.1 forge 1.2 MB R 2.2.0+1.20.1-fabric 1.18.2, 1.19, 1.19.1 fabric, quilt 582 KB R 2.2.0+1.19.2-forge 1.19.2 forge 1.2 MB R 2.2.0+1.18.2-forge 1.18.2 forge 1.2 MB R 2.2.0+1.16.5-forge 1.16.5 forge 1.3 MB R 2.2.0+1.16.5-fabric 1.16.5 fabric, quilt 582 KB R 2.2.0+1.12.2-forge 1.12.2 forge 563 KB R 2.1.2+26.1.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 567 KB R 2.1.2+26.1.2-fabric 26.1, 26.1.1, 26.1.2 fabric, quilt 566 KB R 2.1.2+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 567 KB R 2.1.2+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 578 KB R 2.1.2+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 571 KB R 2.1.2+1.20.1-forge 1.20.1 forge 1.2 MB R 2.1.2+1.20.1-fabric 1.18.2, 1.19, 1.19.1 fabric, quilt 578 KB R 2.1.2+1.19.2-forge 1.19.2 forge 1.2 MB R 2.1.2+1.18.2-forge 1.18.2 forge 1.2 MB R 2.1.1+26.1.2-neoforge 26.1, 26.1.1, 26.1.2 neoforge 567 KB R 2.1.1+26.1.2-fabric 26.1, 26.1.1, 26.1.2 fabric, quilt 566 KB R 2.1.1+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 567 KB R 2.1.1+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 577 KB

Файли надаються напряму з першоджерела. Modgrid не зберігає та не змінює їх.