[−][src]Trait log4rs::encode::Encode
A trait implemented by types that can serialize a Record
into a
Write
r.
Encode
rs are commonly used by Append
ers to format a log record for
output.
Required methods
fn encode(
&self,
w: &mut dyn Write,
record: &Record
) -> Result<(), Box<dyn Error + Sync + Send>>
&self,
w: &mut dyn Write,
record: &Record
) -> Result<(), Box<dyn Error + Sync + Send>>
Encodes the Record
into bytes and writes them.