Common Logging Format
- Dominant language
- Rust
- Stars
- 5.1k
- Forks
- 329
- PR merge metrics
- No merged PRs in 30d
Description
## Feature Request
- Would be great if the default logger has the option to do [Common Logging Format](https://en.wikipedia.org/wiki/Common_Log_Format).
## Detailed Description
- Currently, https://github.com/rustasync/tide/pull/222 sets up `tide-log`.
- We should think about having an additional option to log in CLF
- Currently, this will be blocked by:
- The ability to get the peer socket addr (https://github.com/rustasync/http-service/issues/25)
- The above should be complimented by the ability to use defacto headers like `X-Forwarded-For` optionally.
- Explore best way to access the total transferred size from the logger.
- Other things to think about:
- How does this apply on top of `log` crate. Or is it better handled without `log` as a separate middleware.
Related: https://github.com/rustasync/tide/issues/8
Contributor guide
Assessment
This issue has not been assessed yet.