igumnoff / shiva

Shiva library: Implementation in Rust of a parser and generator for documents of any type
https://docs.rs/shiva
GNU General Public License v3.0
159 stars 10 forks source link

log replace println! #101

Open evgenyigumnov opened 2 months ago

evgenyigumnov commented 2 months ago

Could you remove all of println?

Add "log = "0.4.20" to Cargo.toml please

Probably better way to inform about problems should look like this:

log::warn!("No align value for image");

you should understand what for printing logs you could use other crate

for example "env_logger = "0.10.0""

please add this create only for tests like a developer dependency