Skip to content

Commit

Permalink
explain uid and log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Feb 9, 2022
1 parent 0412c6a commit 282412a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/logger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ compliant logger::
[$loggerPlugin]
);

The log level for exceptions is `error`, the request and responses without exceptions are logged at level `info`.
Request and response/errors can be correlated by looking at the `uid` of the log context.
If you don't want to normally log requests, you can set the logger to normally only log `error` but use the
Fingerscrossed logger of monolog to also log the request in case an exception is encountered.

By default it uses ``Http\Message\Formatter\SimpleFormatter`` to format the request or the response into a string.
You can use any formatter implementing the ``Http\Message\Formatter`` interface::

Expand Down

0 comments on commit 282412a

Please sign in to comment.