Trait slog::Message [] [src]

pub trait Message {
    fn as_str(&self) -> Cow<str>;

    fn write_to(&self, io: &mut Write) -> Result<()> { ... }
}

Log Record message

Required Methods

Take a string

Provided Methods

Write it into io (which might be fast than as_str() it does not need to allocate anything in certain cases.

Implementors