Skip to content

Commit d781f82

Browse files
Add documentation for using RUST_LOG
1 parent 94c5d0e commit d781f82

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/content/documentation/getting-started/cli-usage.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,13 @@ You can disable this behavior by exporting one of the following two environment
139139
To force the use of colors, you can set the following environment variable:
140140

141141
- `CLICOLOR_FORCE=1`
142+
143+
## Extra information
144+
145+
Zola can provide detailed logging about its behavior via the `RUST_LOG` variable:
146+
147+
- To see debug information from Zola, set `RUST_LOG=zola=debug`
148+
- To see debug information from everywhere (including Zola's dependencies), set `RUST_LOG=debug`. *Note*: The output will be **very noisy**, use with caution.
149+
- To disable all log output entirely, set `RUST_LOG=off`.
150+
151+
See the [env_logger documentation](https://docs.rs/env_logger/0.11.8/env_logger/#enabling-logging) for a full reference on `RUST_LOG`.

0 commit comments

Comments
 (0)