hseeberger / accessus   2.0.0

Apache License 2.0 GitHub

Access log for Akka HTTP based servers

Scala versions: 2.12 2.11

Accessus

Provides ways to wrap a route or request-response handler in a new handler which also streams pairs of enriched request and response to an access log sink:

+------------------------------------------------------------------------------------+
|                                                                                    |
|        +-----------+      +-----------+      +-----------+      +-----------+      |
|   +--->○ enrichReq ○----->○   unzip   ○----->○  handler  ○----->○  bcastRes ○--+   |
|   |    +-----------+      +-----○-----+      +-----------+      +-----------+  |   |
|   |                             |                                     |        |   |
○---+                             |                                     |        +-->○
|                                 v                                     |            |
|        +-----------+      +-----○-----+                               |            |
|        | accessLog ○<-----○    zip    ○<------------------------------+            |
|        +-----------+      +-----------+                                            |
|                                                                                    |
+------------------------------------------------------------------------------------+

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.

License

This code is open source software licensed under the Apache-2.0 license.