Skip to content

Commit

Permalink
[eclipse-iceoryx#396] Update setting log level section
Browse files Browse the repository at this point in the history
Signed-off-by: Ziad Mostafa <[email protected]>
  • Loading branch information
zmostafa committed Nov 7, 2024
1 parent d6b0ec1 commit ec18a75
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,20 @@ But you can also use a crate like [ctrlc](https://docs.rs/ctrlc/latest/ctrlc/).

## How to set the log level

iceoryx2 gets the logging level from either the code, or the environment variable `IOX2_LOG_LEVEL`
the developer can set this environment variable with one of the supported levels:
```Trace, Debug, Info, Warning, Error, Fatal```

`export IOX2_LOG_LEVEL=Trace`

or via `.cargo/config.toml`

> [!NOTE]
> Setting IOX2_LOG_LEVEL from terminal will take precedence over setting it
> from `.cargo/config.toml`.

Developers can also set the logging level from within the code:

```rust
use iceoryx2::prelude::*

Expand Down

0 comments on commit ec18a75

Please sign in to comment.