Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a tracing subscriber for LSP logging (#93)
* Teach `log::` and tracing::` to send `window/logMessage` messages * Put logging on its own thread This completely isolates it, and also allows us to maintain all logging related logic in `logging.rs` * Tweak existing log usage * Avoid logging during tests * Fully switch to tracing over log Right now we don't even have the "compatibility" log layer turned on * Send an initial log message with the level * Check `AIR_LOG` envvar on startup * Tweak expected option name * Tweak comment * Do log during testing, but "captured" by default - `just test` is silent - `just test-verbose` is noisy and sequential - CI is noisy and sequential and `trace` level * Add intermediate `Trace*` structs with custom `Debug` implementations * Use `Targets` backed filtering * Always write the request/notify name at `info!()` level * Use `pretty()` after all because it is useful with spans * Write out `AIR_CRATE_NAMES` at build time
- Loading branch information