rescript-lang / rewatch

Rewatch is an alternative build system for the Rescript Compiler.
95 stars 12 forks source link

:loud_sound: - Move logging to env_logger #126

Open rolandpeelen opened 3 months ago

rolandpeelen commented 3 months ago

Change println statements to log::[warn, log, error, ...]. Adds the ability to use log levels for CI. For instance, running RUST_LOG=warn rewatch build will only use warn and up.

See the env_logger crate for more info.

rolandpeelen commented 3 months ago

Should give you a fix for #113 -- @cknitt 🙌

cknitt commented 3 months ago

Great! Thanks a lot!

Tests are failing though.

From the user experience point of view I think it would be nicer to have a command line option for the log level (or maybe even just a --quiet option) instead of having to set an environment variable called RUST_LOG.