typed_log

Crates.iotyped_log
lib.rstyped_log
version0.1.1
created_at2025-08-05 20:07:01.812766+00
updated_at2025-08-07 12:43:32.350907+00
descriptionLogging shouldn't be limited to text.
homepage
repositoryhttps://github.com/Vrixyz/typed_log
max_upload_size
id1782927
size20,692
Thierry Berger (Vrixyz)

documentation

README

Typed logging

When making a library, an author knows what information make sense to log. Often, that information is typed.

Rust's log facade is forcing Rust's users to use a text format for logging.

While text works to convey information, it may not be the best way to do so.

Tools like Sentry enable you to use those text logs quite comfortably, but advanced logging visualization requires custom approaches, often involving expensive an error-prone text deserialization.

Rerun logging for a geometry crate for example, could help with understanding algorithms, or track bugs more easily.

This crate offers an alternative approach to logging, where library author is in charge of what makes sense to log, and users are in charge on how to log it.

WIP

This crate is very WIP, do not use, but! it may very well have more features at some point:

  • macros à la log crate:
    • to opt out of logging on release builds
    • to filer logs depending on environment variables
  • tracing compatibility
    • span information is great and may unlock parallel logging visualizations...
Commit count: 0

cargo fmt