Logging from Rust in librsvg

from blog Federico's Blog, | ↗ original
Over in this issue we are discussing how to add debug logging for librsvg. A popular way to add logging to Rust code is to use the log crate. This lets you sprinkle simple messages in your code: error!("something bad happened: {}", foo); debug!("a debug message"); However, the log …