pub trait Writer { // Required method fn write_log(&self, value: &Log<'_>) -> Result<(), Error>; }
Writer is a trait that defines how to write a log.
write_log writes a log to the underlying io::Write instance.
implementate Writer for JSONWriter.