diff --git a/book/src/tooling/defmt.md b/book/src/tooling/defmt.md index 3efe67fbc..b2a6d2fdc 100644 --- a/book/src/tooling/defmt.md +++ b/book/src/tooling/defmt.md @@ -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