pekko/akka-docs/rst/java/http/routing-dsl/directives/debugging-directives/logRequest.rst
Fabian Gutierrez 2b60f5fcbf +doc #20466 akka http javadsl - add debugging directive test (#20651)
* akka http javadsl - add debugging directive test

* fixes line breaks
2016-05-30 10:47:45 +02:00

19 lines
516 B
ReStructuredText

.. _-logRequest-java-:
logRequest
==========
Description
-----------
Logs the request. The directive is available with the following parameters:
* A marker to prefix each log message with.
* A log level.
* A function that creates a :class:``LogEntry`` from the :class:``HttpRequest``
Use ``logResult`` for logging the response, or ``logRequestResult`` for logging both.
Example
-------
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/DebuggingDirectivesExamplesTest.java#logRequest