Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dogedark/dioxus-logger
A logging utility to provide a standard interface whether you're targetting web desktop, fullstack, and more.
https://github.com/dogedark/dioxus-logger
dioxus logging
Last synced: 3 months ago
JSON representation
A logging utility to provide a standard interface whether you're targetting web desktop, fullstack, and more.
- Host: GitHub
- URL: https://github.com/dogedark/dioxus-logger
- Owner: DogeDark
- License: mit
- Created: 2022-11-05T19:57:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-13T20:25:48.000Z (8 months ago)
- Last Synced: 2024-10-14T20:37:27.529Z (3 months ago)
- Topics: dioxus, logging
- Language: Rust
- Homepage:
- Size: 24.4 KB
- Stars: 18
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
📡 Dioxus Logger 🛰️
A logging utility to provide a standard interface whether you're targetting web, desktop, fullstack, and more.
-----
`dioxus-logger` is a basic cross-platform facade for logging in [Dioxus](https://dioxuslabs.com/) that uses the [tracing](https://crates.io/crates/tracing) crate.
```rust
use dioxus::prelude::*;
use dioxus_logger::tracing::{Level, info};
fn main() {
dioxus_logger::init(Level::INFO).expect("logger failed to init");
launch(App);
}#[component]
fn App() -> Element {
info!("App rendered");
rsx! {
p { "hi" }
}
}
```## Platform Support
Dioxus logger will eventually support every target that Dioxus does. Currently mobile and TUI are not supported.## Installation
You can add `dioxus-logger` to your application by adding it to your dependencies.
```toml
[dependencies]
dioxus-logger = "0.5"
```## License
This project is licensed under the [MIT license].[mit license]: ./LICENSE
Every contribution intentionally submitted for inclusion in `dioxus-logger` by you, shall be licensed as MIT, without any additional terms or conditions.