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
@@ -8,8 +8,4 @@ publish = false
|
||||
|
||||
[dependencies]
|
||||
dioxus = { workspace = true, features = ["desktop"] }
|
||||
|
||||
# Debug
|
||||
log = "0.4.19"
|
||||
dioxus-logger = "0.4.1"
|
||||
open = "5.1.2"
|
||||
@@ -12,9 +12,6 @@ dioxus = { workspace = true, features = ["fullstack", "router"] }
|
||||
chrono = { version = "0.4.38", features = ["serde"] }
|
||||
reqwest = { workspace= true, features = ["json"] }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
tracing-wasm = "0.2.1"
|
||||
tracing = { workspace = true }
|
||||
tracing-subscriber = "0.3.17"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
||||
@@ -11,12 +11,6 @@ use std::{
|
||||
use svg_attributes::to;
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "web")]
|
||||
tracing_wasm::set_as_global_default();
|
||||
|
||||
#[cfg(feature = "server")]
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
LaunchBuilder::new()
|
||||
.with_cfg(server_only! {
|
||||
dioxus::fullstack::ServeConfig::builder().enable_out_of_order_streaming()
|
||||
|
||||
Reference in new issue
Block a user