airframe-http: #399 Add a standard JSON request logger#1073
airframe-http: #399 Add a standard JSON request logger#1073xerial merged 13 commits intowvlet:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1073 +/- ##
==========================================
- Coverage 82.40% 82.31% -0.09%
==========================================
Files 268 270 +2
Lines 10148 10258 +110
Branches 651 670 +19
==========================================
+ Hits 8362 8444 +82
- Misses 1786 1814 +28
Continue to review full report at Codecov.
|
| libraryDependencies += "org.wvlet.airframe" %% "airframe-http-finagle" % (version) | ||
| ``` | ||
|
|
||
| ## Defining HTTP Endpoints |
There was a problem hiding this comment.
This doc has moved to docs/airframe-http.md
|
CI is failing because of some GitHub Action issue. |
| m += "remote_host" -> request.remoteAddress.getHostAddress | ||
| m += "remote_port" -> request.remotePort | ||
|
|
||
| m.result |
There was a problem hiding this comment.
It might be nice to have user_agent. Just a thought
There was a problem hiding this comment.
Yes. user_agent can be read from HTTP headers, so it's already recorded.
There was a problem hiding this comment.
takezoe
left a comment
There was a problem hiding this comment.
Thanks for adding HttpErrorLogger!
Adding a standard http request/response logger so that airframe-http applications always have proper logging.
This will close #399