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§
- AsyncJSON
Writer - A Writer implementation that writes logs asynchronous in JSON format.
Functions§
- new_
writer - Creates a new
Box<dyn Writer>
instance with the AsyncJSONWriter for a given tokio::io::Write instance.