feat(tvix/cli): set up tracing[-subscriber]

No otlp yet, this simply gives us structured log output and a cli
argument for the log level.

Change-Id: Ifaa60bae419640e92baebb6ee59eedd775c769c2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10853
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2024-02-14 08:56:31 +07:00 committed by clbot
parent 87bda3ae7a
commit d293304667
4 changed files with 26 additions and 1 deletions

View file

@ -19,8 +19,9 @@ clap = { version = "4.0", features = ["derive", "env"] }
dirs = "4.0.0"
rustyline = "10.0.0"
thiserror = "1.0.38"
tracing = "0.1.37"
tokio = "1.28.0"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.16", features = ["json"] }
[dependencies.wu-manber]
git = "https://github.com/tvlfyi/wu-manber.git"