Refactor hotkey logging with structured logging macro

This commit is contained in:
Tunglies
2025-03-26 01:18:28 +08:00
parent df5424d55e
commit 14347f60d5
2 changed files with 117 additions and 50 deletions

View File

@@ -4,6 +4,8 @@ use std::fmt;
pub enum Type {
Core,
Service,
Hotkey,
Window,
}
impl fmt::Display for Type {
@@ -11,6 +13,8 @@ impl fmt::Display for Type {
match self {
Type::Core => write!(f, "[Core]"),
Type::Service => write!(f, "[Service]"),
Type::Hotkey => write!(f, "[Hotkey]"),
Type::Window => write!(f, "[Window]"),
}
}
}