Closed rustatian closed 3 years ago
Merging #56 (3d0f439) into master (2c385f7) will increase coverage by
0.22%
. The diff coverage is91.17%
.:exclamation: Current head 3d0f439 differs from pull request most recent head bfcb6fd. Consider uploading reports for the commit bfcb6fd to get more accurate results
@@ Coverage Diff @@
## master #56 +/- ##
==========================================
+ Coverage 67.48% 67.71% +0.22%
==========================================
Files 110 110
Lines 9233 9294 +61
==========================================
+ Hits 6231 6293 +62
Misses 2376 2376
+ Partials 626 625 -1
Impacted Files | Coverage Δ | |
---|---|---|
http/config/http.go | 55.23% <ø> (ø) |
|
http/middleware/gzip/plugin.go | 88.88% <ø> (ø) |
|
http/middleware/headers/plugin.go | 86.48% <ø> (ø) |
|
http/middleware/static/config.go | 66.66% <ø> (ø) |
|
http/middleware/static/etag.go | 65.90% <ø> (ø) |
|
http/middleware/static/plugin.go | 69.90% <ø> (ø) |
|
http/handler/request.go | 77.63% <50.00%> (-0.30%) |
:arrow_down: |
http/ssl.go | 36.11% <50.00%> (ø) |
|
http/handler/handler.go | 83.40% <90.90%> (+3.72%) |
:arrow_up: |
http/http.go | 45.00% <100.00%> (ø) |
|
... and 6 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2c385f7...bfcb6fd. Read the comment docs.
Reason for This PR
closes: #9 closes: #34
Description of Changes
Add support for the access logs at
Info
log level. Fields:method
- http method.remote_addr
- request remote address.bytes_sent
- content-length,http_host
- host.request
- request Query.time_local
- local time in Common Log Format.request_length
- request body with headers size (content-len + size of all headers) in bytes. Max allowed headers size for the RR is 1MB.request_time
- request processing time in seconds with a milliseconds resolution.status
- http response status.http_user_agent
- http user agenthttp_referer
- http referer✏️ Access logs turned off by default, to turn on, please, use the following field in the configuration:
✏️ HTTP middleware to handle Symfony's
X-Sendfile
header.License Acceptance
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
PR Checklist
[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]
git commit -s
).CHANGELOG.md
.