Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.
/ dioxus-logger Public archive

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

License

Notifications You must be signed in to change notification settings

DogeDark/dioxus-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warning

Dioxus Logger has been inlined with the main Dioxus repository. The crate itself, dioxus-logger, has not changed. This repository is now an archive of my (@DogeDark) first open-source project ❤️.

📡 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 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.

[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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages