pekko/akka-docs/rst/java/http/routing-dsl/directives/debugging-directives/logRequestResult.rst
Shivansh Srivastava 25e4586aa0 [#21090] Added the improved code for loggingResponsetime and added the link in the docs (#21118)
* [#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
2016-08-05 16:16:14 +02:00

23 lines
712 B
ReStructuredText

.. _-logRequestResult-java-:
logRequestResult
================
Description
-----------
Logs both, the request and the response.
This directive is a combination of :ref:`-logRequest-java-` and :ref:`-logResult-java-`.
See :ref:`-logRequest-java-` for the general description how these directives work.
Example
-------
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/DebuggingDirectivesExamplesTest.java#logRequestResult
Longer Example
--------------
This example shows how to log the response time of the request using the Debugging Directive
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/DebuggingDirectivesExamplesTest.java#logRequestResultWithResponseTime