diff --git a/src/lib.rs b/src/lib.rs index 27e906c..db7ffc5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,7 +71,7 @@ fn format(record: &Record) -> std::io::Result<()> { // write the actual message use std::fmt::Write; let mut splicer = LineSplicer(buffer); - _=write!(splicer, "{}", record.args()); + _=write!(splicer, "{}", record.args().to_string()); // finalize write!(buffer, "\n")?; diff --git a/src/main.rs b/src/main.rs index eb93be6..82f0f2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,4 +11,17 @@ fn main() { info!("multiline\ndemo"); info!("one\ntwo\nthree\nfour"); + info!("{:#?}", &Test { + string: "Hello World!".to_string(), + test: 0x13412312, + test2: 0xAA, + }); + +} + +#[derive(Debug)] +struct Test { + string: String, + test: u64, + test2: u8 } \ No newline at end of file