refactor: add colored log

This commit is contained in:
Kevin Yue
2023-05-28 19:11:31 +08:00
parent da3dc10569
commit c74ce52c2d
3 changed files with 36 additions and 1 deletions

View File

@@ -17,7 +17,9 @@ tauri-build = { version = "1.3", features = [] }
[dependencies]
gpcommon = { path = "../../gpcommon" }
tauri = { version = "1.3", features = ["http-all", "window-data-url"] }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1", features = [
"colored",
] }
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
log = "0.4"

View File

@@ -50,6 +50,7 @@ fn main() {
LogTarget::Stdout, /*LogTarget::Webview*/
])
.level(log::LevelFilter::Info)
.with_colors(Default::default())
.build(),
)
.setup(setup)