20 lines
626 B
ReStructuredText
20 lines
626 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
|
||
|
|
-------
|
||
|
|
TODO: Example snippets for JavaDSL are subject to community contributions! Help us complete the docs, read more about it here: `write example snippets for Akka HTTP Java DSL #20466 <https://github.com/akka/akka/issues/20466>`_.
|