A Rust logger that prints every message in a readable format
open sourceMITfree
simple_logger is a Rust logger for the log crate that prints all messages in a readable format based on Supervisord's, with RFC 3339 timestamps. You can change the timestamp format and timezone (UTC by default since 2.0), colour messages by level, include thread metadata, and send output to stdout or stderr, each behind a Cargo feature. Its author considers it close to finished: fixes are merged, but large features are turned down, and the README points to the log crate's list of other loggers for more.
Problems it solves
- print my Rust program's log messages with timestamps without configuring anything
- get coloured log output by level in a small Rust CLI
- send Rust log output to stderr
Features
- readable output based on Supervisord's format
- RFC 3339 timestamps with a configurable format and timezone
- colours by log level
- optional thread metadata
- output to stdout or stderr
Alternatives
The same job
These do what simple_logger does.
- env_logger Rust logger configured with the RUST_LOG environment variable
- tracing Application-level tracing and structured diagnostics for Rust
