From 8f1eb7b2b03fd6907307f4e0065d0c43da22edb3 Mon Sep 17 00:00:00 2001 From: Kelly Thomas Kline Date: Mon, 7 Jun 2021 19:44:31 -0700 Subject: Add trace log primer to the Contributing section --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3ad44fff..f5a84d5d 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,9 @@ Some suggestions to get started: - You can look at the [good first issue](https://github.com/helix-editor/helix/labels/good%20first%20issue) label on the issue tracker. - Help with packaging on various distributions needed! +- To use print debugging to the `~/.cache/helix/helix.log` file, you must: + * Print using `log::info!`, `warn!`, or `error!`. (`log::info!("helix!")`) + * Pass the appropriate verbosity level option for the desired log level. (`hx -v ` for info, more `v`s for higher severity inclusive) - If your preferred language is missing, integrating a tree-sitter grammar for it and defining syntax highlight queries for it is straight forward and doesn't require much knowledge of the internals. -- cgit v1.2.3-70-g09d2