* [#21090] Added the improved code for loggingResponsetime and added the link in the docs * [#21090] Added javadocs for logRequestResponseTime * [#21090] Removed the compilation error caused by the missing imports * [#21090] Removed the compilation error caused by type * [#21090] Improved the identation of the code * [#21090] Improved the identation of the code * [#21090] Removed the empty line * [#21090] Refactored the documentation with clear explanations
This commit is contained in:
parent
d1a9049fa0
commit
25e4586aa0
4 changed files with 119 additions and 23 deletions
|
|
@ -30,3 +30,13 @@ Example
|
|||
|
||||
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/DebuggingDirectivesExamplesSpec.scala
|
||||
:snippet: logRequestResult
|
||||
|
||||
|
||||
Building Advanced Directives
|
||||
----------------------------
|
||||
|
||||
This example will showcase the advanced logging using the ``DebuggingDirectives``.
|
||||
The built `logResponseTime ` directive will log the request time (or rejection reason):
|
||||
|
||||
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/DebuggingDirectivesExamplesSpec.scala
|
||||
:snippet: logRequestResultWithResponseTime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue