Langue

Async Logger

Async Logger

Modrinth

Make loggers asynchronous for higher logging throughput and better performance

173.3k téléchargements 29 abonnés mis à jour 8d ago
dernière v1.1.4+26.1.1-neoforge Modrinth
Fabric Forge Neoforge Quilt 1.16.5 – 26.2 Optimization

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.

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.

Versions

Release
1.1.4+26.1.1-neoforge
neoforge · 26.1, 26.1.1, 26.1.2 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
68
Release
1.1.4+26.1.1-fabric
fabric, quilt · 26.1, 26.1.1, 26.1.2 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
3.8k
Release
1.1.4+1.21.11-neoforge
neoforge · 1.21.10, 1.21.11 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
18
Release
1.1.4+1.21.11-fabric
fabric, quilt · 1.21.8, 1.21.9, 1.21.10 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
413
Release
1.1.4+1.21.1-neoforge
neoforge · 1.21, 1.21.1, 1.21.2 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
20.9k
Release
1.1.4+1.20.1-forge
forge · 1.20.1 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
1.9k
Release
1.1.4+1.20.1-fabric
fabric, quilt · 1.16.5, 1.17, 1.17.1 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
349
Release
1.1.4+1.19.2-forge
forge · 1.19.2 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
7
Release
1.1.4+1.18.2-forge
forge · 1.18.2 · 8d ago
Fixed a crash at startup on 1.19.2 Forge.
5
Release
1.1.3+26.1.1-neoforge
neoforge · 26.1, 26.1.1, 26.1.2 · 8d ago
- Added settings for `asyncQueueFullPolicy` and `discardThreshold` - Backported to 1.19.2 and 1.18.2
8
Release
1.1.3+26.1.1-fabric
fabric, quilt · 26.1, 26.1.1, 26.1.2 · 8d ago
- Added settings for `asyncQueueFullPolicy` and `discardThreshold` - Backported to 1.19.2 and 1.18.2
23
Release
1.1.3+1.21.11-neoforge
neoforge · 1.21.10, 1.21.11 · 8d ago
- Added settings for `asyncQueueFullPolicy` and `discardThreshold` - Backported to 1.19.2 and 1.18.2
2

Commentaires 0

Aucun commentaire pour l'instant. Sois le premier à donner ton avis.

Télécharger Async Logger

R 1.1.4+26.1.1-neoforge 26.1, 26.1.1, 26.1.2 neoforge 554 KB R 1.1.4+26.1.1-fabric 26.1, 26.1.1, 26.1.2 fabric, quilt 551 KB R 1.1.4+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 554 KB R 1.1.4+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 563 KB R 1.1.4+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 557 KB R 1.1.4+1.20.1-forge 1.20.1 forge 1.2 MB R 1.1.4+1.20.1-fabric 1.16.5, 1.17, 1.17.1 fabric, quilt 563 KB R 1.1.4+1.19.2-forge 1.19.2 forge 1.2 MB R 1.1.4+1.18.2-forge 1.18.2 forge 1.2 MB R 1.1.3+26.1.1-neoforge 26.1, 26.1.1, 26.1.2 neoforge 554 KB R 1.1.3+26.1.1-fabric 26.1, 26.1.1, 26.1.2 fabric, quilt 551 KB R 1.1.3+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 554 KB R 1.1.3+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 563 KB R 1.1.3+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 557 KB R 1.1.3+1.20.1-forge 1.20.1 forge 1.2 MB R 1.1.3+1.20.1-fabric 1.16.5, 1.17, 1.17.1 fabric, quilt 563 KB R 1.1.3+1.19.2-forge 1.19.2 forge 1.2 MB R 1.1.3+1.18.2-forge 1.18.2 forge 1.2 MB R 1.1.2+26.1.1-neoforge 26.1, 26.1.1, 26.1.2 neoforge 553 KB R 1.1.2+26.1.1-fabric 26.1, 26.1.1, 26.1.2 fabric, quilt 551 KB R 1.1.2+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 553 KB R 1.1.2+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 562 KB R 1.1.2+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 556 KB R 1.1.2+1.20.1-forge 1.20.1 forge 1.2 MB R 1.1.2+1.20.1-fabric 1.20.1, 1.20.2, 1.20.3 fabric, quilt 562 KB R 1.1.1+26.1.1-neoforge 26.1, 26.1.1, 26.1.2 neoforge 553 KB R 1.1.1+26.1.1-fabric 26.1, 26.1.1, 26.1.2 fabric, quilt 551 KB R 1.1.1+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 553 KB R 1.1.1+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 562 KB R 1.1.1+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 556 KB R 1.1.1+1.20.1-forge 1.20.1 forge 1.2 MB R 1.1.1+1.20.1-fabric 1.20.1, 1.20.2, 1.20.3 fabric, quilt 562 KB R 1.1.0+26.1.1-neoforge 26.1, 26.1.1 neoforge 553 KB R 1.1.0+26.1.1-fabric 26.1, 26.1.1 fabric, quilt 551 KB R 1.1.0+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 553 KB R 1.1.0+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 562 KB R 1.1.0+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 556 KB R 1.1.0+1.20.1-forge 1.20.1 forge 1.2 MB R 1.1.0+1.20.1-fabric 1.20.1, 1.20.2, 1.20.3 fabric, quilt 562 KB R 1.0.0+1.21.11-neoforge 1.21.10, 1.21.11 neoforge 544 KB R 1.0.0+1.21.11-fabric 1.21.8, 1.21.9, 1.21.10 fabric, quilt 553 KB R 1.0.0+1.21.1-neoforge 1.21, 1.21.1, 1.21.2 neoforge 547 KB R 1.0.0+1.20.1-forge 1.20.1 forge 1.2 MB R 1.0.0+1.20.1-fabric 1.20.1, 1.20.2, 1.20.3 fabric, quilt 553 KB

Les fichiers proviennent directement de la source d'origine. Modgrid ne les héberge ni ne les modifie.