From 9778194c3ec6ee4f04135af884577e343e629829 Mon Sep 17 00:00:00 2001 From: Ashley Williams Date: Mon, 14 Jan 2019 19:04:05 -0500 Subject: [PATCH] doc(logs): document env_logger setup --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b145e06..53af817 100644 --- a/README.md +++ b/README.md @@ -38,14 +38,15 @@ This project requires Rust 1.30.0 or later. ## 📝 Logging -We generate a `wasm-pack.log` file if `wasm-pack` errors on you, and you can -customize the log verbosity using the verbosity flag. - -| Verbosity | Result | -| ------------- |-----------------------------------------------------| -| -v | All Info, Warn, and Errors are logged | -| -vv | All Debug, Info, Warn, and Errors are logged | -| -vvv | All Trace, Debug, Info, Warn, and Errors are logged | +`wasm-pack` uses [`env_logger`] to produces logs when `wasm-pack` runs. + +To configure your log level, use the `RUST_LOG` environment variable. For example: + +``` +RUST_LOG=info wasm-pack build +``` + +[`env_logger`]: https://crates.io/crates/env_logger ## 👯 Contributing