Skip to content

Commit 8c1fa02

Browse files
Roland Peelenrolandpeelen
authored andcommitted
🔊 - Move logging to env_logger
This adds the ability to use log levels for CI. Running `RUST_LOG=warn rewatch build` will only use `warn` and up. See the [env_logger](https://docs.rs/env_logger/latest/env_logger/) crate for more info.
1 parent 89a36b0 commit 8c1fa02

22 files changed

+436
-266
lines changed

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ serde_json = { version = "1.0.93" }
1111
ahash = "0.8.3"
1212
convert_case = "0.6.0"
1313
rayon = "1.6.1"
14-
log = { version = "0.4.17", features = [
15-
"max_level_debug",
16-
"release_max_level_warn",
17-
] }
14+
log = { version = "0.4.17" }
1815
env_logger = "0.10.0"
1916
indicatif = "0.17.3"
2017
console = "0.15.5"
@@ -26,6 +23,7 @@ futures-timer = "3.0.2"
2623
clap = { version = "4.3.17", features = ["derive"] }
2724
sysinfo = "0.29.10"
2825
ctrlc = "3.4.4"
26+
clap-verbosity-flag = "2.2.2"
2927

3028

3129
[profile.release]

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ Options:
6565
-n, --no-timing <NO_TIMING>
6666
[possible values: true, false]
6767
68+
-v, --verbose...
69+
Increase logging verbosity
70+
71+
-q, --quiet...
72+
Decrease logging verbosity
73+
6874
-c, --create-sourcedirs <CREATE_SOURCEDIRS>
6975
This creates a source_dirs.json file at the root of the monorepo, which is needed when you want to use Reanalyze
7076
@@ -84,6 +90,7 @@ Options:
8490
8591
-V, --version
8692
Print version
93+
8794
```
8895

8996
# Contributing

0 commit comments

Comments
 (0)