Skip to content

Commit

Permalink
doc(book): point out how multiple levels are done
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Dec 20, 2024
1 parent 78a2d9d commit 3a79021
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions book/src/tooling/defmt.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ Ariel OS supports [defmt] on all platforms. It is enabled by default.
See the [defmt documentation] for general info on `defmt`.

In Ariel OS, the log level defaults to `info`. It can be configured using the
laze variable `LOG`.
laze variable `LOG`. The variable can be given multiple times for crate- or
module-level granularity.

Example:

```shell
# laze build -C examples/log --builders nrf52840dk -DLOG=warn run
# laze build -C examples/log --builders nrf52840dk -DLOG=warn,ariel_os_rt=trace run
```

Then within Rust code, import `ariel_os::debug::log` items, then use `defmt` log
Expand Down

0 comments on commit 3a79021

Please sign in to comment.