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