]> git.lizzy.rs Git - rust.git/commitdiff
add documentation of RA_LOG_FILE
authorrezural <rezural@protonmail.com>
Mon, 21 Jun 2021 21:28:33 +0000 (07:28 +1000)
committerrezural <rezural@protonmail.com>
Mon, 21 Jun 2021 21:28:33 +0000 (07:28 +1000)
docs/dev/README.md

index e81f1e74c38449424ef23ff84215d5906d2218bf..a394b85010cbce89b47829002979ada991143e76 100644 (file)
@@ -131,7 +131,8 @@ Logging is done by both rust-analyzer and VS Code, so it might be tricky to figu
 
 Inside rust-analyzer, we use the standard `log` crate for logging, and `env_logger` for logging frontend.
 By default, log goes to stderr, but the stderr itself is processed by VS Code.
-`--log-file <PATH>` CLI argument allows logging to file.
+`--log-file <PATH>` CLI argument allows logging to file. 
+Setting the `RA_LOG_FILE=<PATH>` environment variable will also log to file, it will also override `--log-file`.
 
 To see stderr in the running VS Code instance, go to the "Output" tab of the panel and select `rust-analyzer`.
 This shows `eprintln!` as well.