Skip to content

Commit 282412a

Browse files
authored
explain uid and log levels
1 parent 0412c6a commit 282412a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

plugins/logger.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ compliant logger::
2626
[$loggerPlugin]
2727
);
2828

29+
The log level for exceptions is `error`, the request and responses without exceptions are logged at level `info`.
30+
Request and response/errors can be correlated by looking at the `uid` of the log context.
31+
If you don't want to normally log requests, you can set the logger to normally only log `error` but use the
32+
Fingerscrossed logger of monolog to also log the request in case an exception is encountered.
33+
2934
By default it uses ``Http\Message\Formatter\SimpleFormatter`` to format the request or the response into a string.
3035
You can use any formatter implementing the ``Http\Message\Formatter`` interface::
3136

0 commit comments

Comments
 (0)