Skip to content

Commit 89ee251

Browse files
committed
feat: switch to tracing
1 parent 4cca291 commit 89ee251

File tree

5 files changed

+127
-106
lines changed

5 files changed

+127
-106
lines changed

Cargo.lock

Lines changed: 105 additions & 99 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.3.3-dev"
44
edition = "2021"
55

66
[dependencies]
7+
anyhow = "1.0.95"
78
eframe = { version = "0.30", default-features = false, features = [ #
89
"accesskit", # Make egui compatible with screen readers. NOTE: adds a lot of dependencies.
910
"default_fonts", # Embed the default egui fonts.
@@ -12,23 +13,22 @@ eframe = { version = "0.30", default-features = false, features = [ #
1213
"wayland", # To support Linux (and CI)
1314
"x11",] }
1415
egui = "0.30"
15-
log = "0.4.22"
16-
17-
anyhow = "1.0.95"
1816
egui_extras = "0.30"
1917
futures = "0.3.31"
2018
rfd = { version = "0.15.2", default-features = false, features = ["gtk3", "tokio"] }
2119
serde = { version = "1.0.217", features = ["derive"] }
2220
serde_json = "1.0.135"
21+
tracing = "0.1.41"
2322

2423
# native:
2524
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
26-
env_logger = "0.11.6"
2725
poll-promise = { version = "0.3.0", features = ["tokio"] }
2826
tokio = { version = "1.43", default-features = false } # I suspect features are brought in with poll-promise (not able to separate out to see what we need)
27+
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
2928

3029
# web:
3130
[target.'cfg(target_arch = "wasm32")'.dependencies]
31+
log = "0.4.22"
3232
poll-promise = { version = "0.3.0", features = ["web"] }
3333
wasm-bindgen-futures = "0.4.49"
3434
web-sys = "0.3.76"

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ use egui::{
77
Align, KeyboardShortcut,
88
};
99
use egui_extras::{Column, TableBuilder};
10-
use log::info;
1110
use shortcut::Shortcuts;
1211
use std::{
1312
hash::{DefaultHasher, Hash, Hasher},
1413
path::PathBuf,
1514
sync::{Arc, LazyLock, Mutex},
1615
};
16+
use tracing::info;
1717

1818
mod data;
1919
mod data_display_options;

src/app/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use std::{
66
use anyhow::Context;
77
use data_iter::DataIter;
88
use filter::{FieldSpecifier, FilterConfig};
9-
use log::warn;
109
use serde_json::Value;
10+
use tracing::warn;
1111

1212
use super::{
1313
calculate_hash,

0 commit comments

Comments
 (0)