Module structured_logger::async_json
source · Expand description
Async JSON Writer Implementation
A Writer
implementation that logs structured values
asynchronous in JSON format to a file, stderr, stdout, or any other destination, base on tokio
.
To create a Box<dyn Writer>
use the new_writer
function.
Example: https://github.com/iorust/structured-logger/blob/main/examples/async_log.rs
Structs
- A Writer implementation that writes logs asynchronous in JSON format.
Functions
- Creates a new
Box<dyn Writer>
instance with the AsyncJSONWriter for a given tokio::io::Write instance.