remove log from a few examples

This commit is contained in:
Evan Almloff committed 2023-09-11 19:42:08 -05:00
1 parent bc3b781136
commit 6e74d08bf5
8 files changed
+15 -15

No files matched your search

-1
View File
@@ -82,7 +82,6 @@ generational-box = { path = "packages/generational-box" }
dioxus-hot-reload = { path = "packages/hot-reload", version = "0.4.0" } dioxus-hot-reload = { path = "packages/hot-reload", version = "0.4.0" }
dioxus-fullstack = { path = "packages/fullstack", version = "0.4.1" } dioxus-fullstack = { path = "packages/fullstack", version = "0.4.1" }
dioxus_server_macro = { path = "packages/server-macro", version = "0.4.1" } dioxus_server_macro = { path = "packages/server-macro", version = "0.4.1" }
log = "0.4.19"
tracing = "0.1.37" tracing = "0.1.37"
tracing-futures = "0.2.5" tracing-futures = "0.2.5"
tokio = "1.28" tokio = "1.28"
@@ -12,8 +12,9 @@ dioxus-fullstack = { workspace = true }
axum = { version = "0.6.12", optional = true } axum = { version = "0.6.12", optional = true }
serde = "1.0.159" serde = "1.0.159"
simple_logger = "4.2.0" simple_logger = "4.2.0"
wasm-logger = "0.2.0" tracing-wasm = "0.2.1"
log.workspace = true tracing.workspace = true
tracing-subscriber = "0.3.17"
reqwest = "0.11.18" reqwest = "0.11.18"
[features] [features]
@@ -12,7 +12,6 @@ use dioxus_fullstack::{
prelude::*, prelude::*,
}; };
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use wasm_logger::Config;
#[derive(Props, PartialEq, Debug, Default, Serialize, Deserialize, Clone)] #[derive(Props, PartialEq, Debug, Default, Serialize, Deserialize, Clone)]
struct AppProps { struct AppProps {
@@ -66,9 +65,9 @@ async fn get_server_data() -> Result<String, ServerFnError> {
fn main() { fn main() {
#[cfg(feature = "web")] #[cfg(feature = "web")]
wasm_logger::init(wasm_logger::Config::new(tracing::Level::Trace)); tracing_wasm::set_as_global_default();
#[cfg(feature = "ssr")] #[cfg(feature = "ssr")]
simple_logger::SimpleLogger::new().init().unwrap(); tracing_subscriber::fmt::init();
LaunchBuilder::new_with_props(app, AppProps { count: 0 }).launch() LaunchBuilder::new_with_props(app, AppProps { count: 0 }).launch()
} }
@@ -16,8 +16,9 @@ salvo = { version = "0.37.9", optional = true }
execute = "0.2.12" execute = "0.2.12"
reqwest = "0.11.18" reqwest = "0.11.18"
simple_logger = "4.2.0" simple_logger = "4.2.0"
log.workspace = true tracing-wasm = "0.2.1"
wasm-logger = "0.2.0" tracing.workspace = true
tracing-subscriber = "0.3.17"
[features] [features]
default = [] default = []
@@ -60,9 +60,9 @@ async fn get_server_data() -> Result<String, ServerFnError> {
fn main() { fn main() {
#[cfg(feature = "web")] #[cfg(feature = "web")]
wasm_logger::init(wasm_logger::Config::new(tracing::Level::Trace)); tracing_wasm::set_as_global_default();
#[cfg(feature = "ssr")] #[cfg(feature = "ssr")]
simple_logger::SimpleLogger::new().init().unwrap(); tracing_subscriber::fmt::init();
LaunchBuilder::new_with_props(app, AppProps { count: 0 }).launch() LaunchBuilder::new_with_props(app, AppProps { count: 0 }).launch()
} }
@@ -16,8 +16,9 @@ warp = { version = "0.3.3", optional = true }
execute = "0.2.12" execute = "0.2.12"
reqwest = "0.11.18" reqwest = "0.11.18"
simple_logger = "4.2.0" simple_logger = "4.2.0"
log.workspace = true tracing-wasm = "0.2.1"
wasm-logger = "0.2.0" tracing.workspace = true
tracing-subscriber = "0.3.17"
[features] [features]
default = [] default = []
@@ -60,9 +60,9 @@ async fn get_server_data() -> Result<String, ServerFnError> {
fn main() { fn main() {
#[cfg(feature = "web")] #[cfg(feature = "web")]
wasm_logger::init(wasm_logger::Config::new(tracing::Level::Trace)); tracing_wasm::set_as_global_default();
#[cfg(feature = "ssr")] #[cfg(feature = "ssr")]
simple_logger::SimpleLogger::new().init().unwrap(); tracing_subscriber::fmt::init();
LaunchBuilder::new_with_props(app, AppProps { count: 0 }).launch() LaunchBuilder::new_with_props(app, AppProps { count: 0 }).launch()
} }
-1
View File
@@ -21,7 +21,6 @@ js-sys = "0.3.56"
wasm-bindgen = { workspace = true, features = ["enable-interning"] } wasm-bindgen = { workspace = true, features = ["enable-interning"] }
wasm-bindgen-futures = "0.4.29" wasm-bindgen-futures = "0.4.29"
tracing = { workspace = true } tracing = { workspace = true }
log = { workspace = true }
rustc-hash = { workspace = true } rustc-hash = { workspace = true }
console_error_panic_hook = { version = "0.1.7", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true }
futures-util = { workspace = true, features = ["std", "async-await", "async-await-macro"] } futures-util = { workspace = true, features = ["std", "async-await", "async-await-macro"] }