Skip to content

Commit 29caca4

Browse files
authored
Handler formatter example was using wrong defined service
The service class passed to the formatter in the example handler was using the processor service instead of the formatter service. It should instead use `monolog.formatter.session_request`, otherwise monolog complains that the class does not implement interface `Monolog\Formatter\FormatterInterface`.
1 parent 788ffe2 commit 29caca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logging/processors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ using a processor.
7171
type: stream
7272
path: '%kernel.logs_dir%/%kernel.environment%.log'
7373
level: debug
74-
formatter: app.logger.session_request_processor
74+
formatter: monolog.formatter.session_request
7575
7676
.. code-block:: xml
7777

0 commit comments

Comments
 (0)