#logging #dioxus #log

dioxus-logger

A logging utility to provide a standard interface whether you're targetting web desktop, fullstack, and more

8 releases (4 breaking)

0.5.0 Apr 17, 2024
0.4.1 May 8, 2023
0.3.0 Nov 10, 2022
0.2.0 Nov 9, 2022
0.1.2 Nov 5, 2022

#156 in Debugging

Download history 718/week @ 2024-01-08 376/week @ 2024-01-15 378/week @ 2024-01-22 331/week @ 2024-01-29 234/week @ 2024-02-05 179/week @ 2024-02-12 690/week @ 2024-02-19 1032/week @ 2024-02-26 944/week @ 2024-03-04 364/week @ 2024-03-11 329/week @ 2024-03-18 859/week @ 2024-03-25 851/week @ 2024-04-01 1429/week @ 2024-04-08 1496/week @ 2024-04-15 1146/week @ 2024-04-22

5,031 downloads per month
Used in 3 crates

MIT license

6KB

📡 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 that uses the tracing crate.

use dioxus::prelude::*;
use 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.

[dependencies]
dioxus-logger = "0.5"

License

This project is licensed under the MIT license.

Every contribution intentionally submitted for inclusion in dioxus-logger by you, shall be licensed as MIT, without any additional terms or conditions.

Dependencies

~1.3–1.8MB
~28K SLoC