feat: use log to file

This commit is contained in:
2020-10-07 02:20:48 +08:00
parent 0c57179bda
commit 6c854065d9
4 changed files with 70 additions and 27 deletions

24
Cargo.lock generated
View File

@@ -523,9 +523,11 @@ dependencies = [
"chrono",
"dingtalk",
"lazy_static",
"log",
"rust_util",
"serde",
"serde_json",
"simple-logging",
"tokio",
]
@@ -1059,6 +1061,17 @@ dependencies = [
"libc",
]
[[package]]
name = "simple-logging"
version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b00d48e85675326bb182a2286ea7c1a0b264333ae10f27a937a72be08628b542"
dependencies = [
"lazy_static",
"log",
"thread-id",
]
[[package]]
name = "slab"
version = "0.4.2"
@@ -1135,6 +1148,17 @@ dependencies = [
"winapi 0.3.8",
]
[[package]]
name = "thread-id"
version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c7fbf4c9d56b320106cd64fd024dadfa0be7cb4706725fc44a7d7ce952d820c1"
dependencies = [
"libc",
"redox_syscall",
"winapi 0.3.8",
]
[[package]]
name = "time"
version = "0.1.43"