pub fn write_event(event: &Event) -> std::result::Result<(), std::io::Error> {
        match &event.severity {
            Severity::Debug | Severity::Verbose | Severity::Info | Severity::Warning => {
                write_log_event!(std::io::stdout(), event)
            }
            Severity::Error | Severity::Fatal => write_log_event!(std::io::stderr(), event),
        }
    }
/// write a log event to the console (stdout or stderr, depending on severity)
write a log event to the console (stdout or stderr, depending on severity)
write a log event to the console ( stdout or stderr depending on severity )
pub fn write_event(event: &Event) -> std::result::Result<(), std::io::Error> {
        match &event.severity {
            Severity::Debug | Severity::Verbose | Severity::Info | Severity::Warning => {
                write_log_event!(std::io::stdout(), event)
            }
            Severity::Error | Severity::Fatal => write_log_event!(std::io::stderr(), event),
        }
    }
pub fn write_event ( event : & Event ) -> std :: result :: Result < ( ) , std :: io :: Error > { match & event . severity { Severity :: Debug | Severity :: Verbose | Severity :: Info | Severity :: Warning => { write_log_event ! ( std io stdout ( ) event ) } Severity :: Error | Severity :: Fatal => write_log_event ! ( std io stderr ( ) event ) , } }
write a log event to the console (stdout or stderr, depending on severity)
write a log event to the console ( stdout or stderr depending on severity )
event
&Event