Logging and Tracing
auto-lsp uses fastrace
and log
for tracing and logging.
Logging
To enable logging, you can use any logger that implements the log
crate.
For example, you can use stderrlog
to log to stderr.
stderrlog::new()
.modules([module_path!(), "auto_lsp"])
.verbosity(4)
.init()
.unwrap();
Tracing
To enable tracing, follow the instructions in the fastrace documentation.