Skip to content

Handler formatter example was using wrong defined service #9000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions logging/processors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ using a processor.
type: stream
path: '%kernel.logs_dir%/%kernel.environment%.log'
level: debug
formatter: app.logger.session_request_processor
formatter: monolog.formatter.session_request
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks correct to me. Can you also update the other configuration formats? They seem to have the same incorrect value at the formatter option.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iltar no problem, I've updated the other configuration formats


.. code-block:: xml

Expand Down Expand Up @@ -106,7 +106,7 @@ using a processor.
type="stream"
path="%kernel.logs_dir%/%kernel.environment%.log"
level="debug"
formatter="app.logger.session_request_processor"
formatter="monolog.formatter.session_request"
/>
</monolog:config>
</container>
Expand All @@ -132,7 +132,7 @@ using a processor.
'type' => 'stream',
'path' => '%kernel.logs_dir%/%kernel.environment%.log',
'level' => 'debug',
'formatter' => 'app.logger.session_request_processor',
'formatter' => 'monolog.formatter.session_request',
),
),
));
Expand Down