feat: adds trace events to server

This commit is contained in:
Avery Harnish
2020-03-03 12:31:49 -06:00
parent 80511f2cb5
commit 2b6b19ebc3
7 changed files with 651 additions and 7 deletions

View File

@@ -1,4 +1,11 @@
# Logging
* get / set
`mini-redis` uses [`tracing`](https://github.com/tokio-rs/tracing) to provide structured logs. Debug logs can be displayed by running:
* timeouts?
```console
RUST_LOG=debug cargo run --bin server
```
Logs will appear when commands are sent to the server from a client.
More documentation on enabling different log levels and filtering logs can be found [here](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives).