feat: integrate dioxus-logger inline (#3302)
* feat: integrate dioxus-logger inline * remove log/simple logger references * fix: add dioxus-data-id-0 to root elements to not emit errors internally * drop config.toml and use cargo.toml profiles instead * make clippy happy with the unit value lint * feat: better presentation for logging
This commit is contained in:
1 parent
995a529b2f
commit
7d490dc3bd
36 files changed
+255
-169
No files matched your search
@@ -16,9 +16,9 @@ rust-version = "1.79.0"
|
||||
dioxus-core = { workspace = true }
|
||||
generational-box = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
serde = { version = "1", features = ["derive"], optional = true }
|
||||
serde = { workspace = true, features = ["derive"], optional = true }
|
||||
parking_lot = "0.12.1"
|
||||
once_cell = "1.18.0"
|
||||
once_cell = { workspace = true }
|
||||
rustc-hash = { workspace = true }
|
||||
futures-channel = { workspace = true }
|
||||
futures-util = { workspace = true }
|
||||
@@ -27,8 +27,7 @@ warnings = { workspace = true }
|
||||
[dev-dependencies]
|
||||
dioxus = { workspace = true }
|
||||
tokio = { workspace = true, features = ["full"] }
|
||||
tracing-subscriber = "0.3.17"
|
||||
simple_logger = "4.2.0"
|
||||
tracing-subscriber = { workspace = true, default-features = true }
|
||||
reqwest = { workspace = true }
|
||||
rand = { workspace = true }
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
||||
|
||||
#[test]
|
||||
fn memos_rerun() {
|
||||
let _ = simple_logger::SimpleLogger::new().init();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
#[derive(Default)]
|
||||
struct RunCounter {
|
||||
@@ -53,8 +53,6 @@ fn memos_rerun() {
|
||||
|
||||
#[test]
|
||||
fn memos_prevents_component_rerun() {
|
||||
let _ = simple_logger::SimpleLogger::new().init();
|
||||
|
||||
#[derive(Default)]
|
||||
struct RunCounter {
|
||||
component: usize,
|
||||
|
||||
@@ -11,7 +11,7 @@ use std::cell::RefCell;
|
||||
|
||||
#[test]
|
||||
fn reading_subscribes() {
|
||||
simple_logger::SimpleLogger::new().init().unwrap();
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
#[derive(Default)]
|
||||
struct RunCounter {
|
||||
|
||||
Reference in new issue
Block a user