Enable logging in clock example

This commit is contained in:
Héctor Ramón Jiménez 2024-04-30 23:51:41 +02:00
parent 7e2d0dc931
commit 62433a65e9
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 3 additions and 0 deletions

View file

@ -10,3 +10,4 @@ iced.workspace = true
iced.features = ["canvas", "tokio", "debug"]
time = { version = "0.3", features = ["local-offset"] }
tracing-subscriber = "0.3"

View file

@ -8,6 +8,8 @@ use iced::{
};
pub fn main() -> iced::Result {
tracing_subscriber::fmt::init();
iced::program("Clock - Iced", Clock::update, Clock::view)
.subscription(Clock::subscription)
.theme(Clock::theme)