structured-logger
A logging implementation for the log crate that logs structured values either synchronous or asynchronous, in JSON, CBOR, or any other format, to a file, stderr, stdout, or any other destination.
It is inspired by std-logger.
Usage
See examples and the API documentation for more.
Example
Simple example:
use Serialize;
use ;
async
- Log panics example: https://github.com/iorust/structured-logger/blob/main/examples/panic_log.rs
- Async log example: https://github.com/iorust/structured-logger/blob/main/examples/async_log.rs
- Custom writers example: https://github.com/iorust/structured-logger/blob/main/examples/custom.rs
License
Copyright © 2023-present IO Rust.
iorust/structured-logger
is licensed under either of Apache License, Version
2.0 or MIT license at your option.