# Logging and Warnings Vega and Vega-Lite report warnings while compiling or evaluating a chart. A conversion can succeed even though Vega dropped an invalid property or recovered from a data problem, so check these messages when a chart does not look as expected. This examples use a logarithmic scale whose inferred domain includes zero. Save this Vega-Lite specification: :::{dropdown} chart.vl.json :open: ```{literalinclude} /_examples/warning-demo.vl.json :language: json ``` ::: Every output struct carries the messages Vega produced in `logs`: ```rust use vl_convert_rs::{VlConverter, VlOpts}; let spec = std::fs::read_to_string("chart.vl.json")?; let converter = VlConverter::new(); let output = converter .vegalite_to_svg(spec, VlOpts::default(), Default::default()) .await?; for entry in output.logs { eprintln!("{}: {}", entry.level, entry.message); } ``` This prints: ```text WARN: Log scale domain includes zero: [0,200] ``` The crate also emits these messages, plus its own operational messages, through the `log` crate under the `vl_convert` target. If no logger is installed when the first converter is created, the crate installs `env_logger`, so setting `RUST_LOG=vl_convert=info` works without any additional configuration. To use a different logger, initialize it before creating a converter.