Change logging backend to tracing

This commit is contained in:
Cappy Ishihara 2024-06-02 04:11:18 +07:00
parent 92d2a0d906
commit ae260cea85
No known key found for this signature in database
GPG key ID: 50862C285CB76906
6 changed files with 27 additions and 50 deletions

View file

@ -7,8 +7,9 @@ publish = false
[dependencies]
# Logging
log = "0.4.21"
fern = { version = "0.6.2", features = ["colored"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "chrono"] }
tracing = "0.1.40"
# fern = { version = "0.6.2", features = ["colored"] }
# Errors handelers
anyhow = "1.0.83"
@ -35,8 +36,7 @@ rand = "0.8.5"
axum = { version = "0.7.5", features = ["ws", "macros", "http2"] }
tower-http = { version = "0.5.2", features = ["trace"] }
tokio = { version = "1.37.0", features = ["full"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "chrono"] }
tracing = "0.1.40"
# TODO: Sort it!
# TODO: Replace Vec<u8> and &[u8] by Bytes