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
Provided Methods
fn write_to(&self, io: &mut Write) -> Result<()>
Write it into io
(which might be fast than as_str()
it does not
need to allocate anything in certain cases.