http-rs / http-rs/tide

Common Logging Format

Open
#224 0 comments 8 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.