.. _-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 `_.