mirror of
https://github.com/actix/actix-website
synced 2025-01-22 16:15:56 +01:00
docs: add dependence of example (#211)
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
parent
2e91d76e2e
commit
b6bd4ece22
@ -114,7 +114,12 @@ to see.
|
|||||||
|
|
||||||
# Error Logging
|
# Error Logging
|
||||||
|
|
||||||
This is a basic example using `middleware::Logger`:
|
This is a basic example using `middleware::Logger` which depends on `env_logger` and `log`:
|
||||||
|
```toml
|
||||||
|
[dependencies]
|
||||||
|
env_logger = "0.8"
|
||||||
|
log = "0.4"
|
||||||
|
```
|
||||||
|
|
||||||
{{< include-example example="errors" file="logging.rs" section="logging" >}}
|
{{< include-example example="errors" file="logging.rs" section="logging" >}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user