goaaats / xivlauncher-neo

XIVLauncher: The Next Degeneration
GNU General Public License v3.0
15 stars 7 forks source link

Logging framework #13

Open goaaats opened 2 years ago

goaaats commented 2 years ago

log4rs?

fitzchivalrik commented 2 years ago

Afaiu tracing is where the ecosystem moves too, it is also used by tokio & and at least some parts of core, and it is async aware/can be used better in async situations as it has utilities for that.

I just recently learned about tracing myself, so I am not sure if there is a complete implementation as log4rs for log yet. The afro mentioned link has a section about the ecosystem. tracing_subscriber provides a simple implementation, and there appears to be tracing-appender for simple file-outputting.

There are also compatible crates to be able to output log statements via tracing.