Env logger feature (#3775)
* feat: Expose and configure tracing env-filter * doc: Add env-filter doc part * chore: Remove conditional import * Move logger env-filter feature out of feature flag * Update logger env filtering * Add RUST_LOG to the process from the cli * Typo * fix clippy * clippy
This commit is contained in:
1 parent
9ffa42392f
commit
93a557c322
4 files changed
+17
-4
No files matched your search
@@ -64,9 +64,8 @@ fn App() -> Element {
|
||||
p { "hi" }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
```
|
||||
For non-wasm targets, runtime filtering is based on the `RUST_LOG` environment variable. e.g. for `RUST_LOG=none,crateName=trace` only logs trace and above for `crateName` will be captured. See [here](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives) for syntax. For crates with `-` in the name, these need to be changed to `_` in `RUST_LOG`.
|
||||
|
||||
## Platform Support
|
||||
Dioxus logger will eventually support every target that Dioxus does. Currently mobile and TUI are not supported.
|
||||
|
||||
Reference in new issue
Block a user