Skip to content

Conversation

@Arkalo2
Copy link

@Arkalo2 Arkalo2 commented Oct 20, 2025

This PR updates the loggin documentation to include the new enabled configuration option for handlers, which allows enabling or disabling specific handlers depending on the environment.

This feature was introduced in symfony/monolog-bundle#482

@carsonbot carsonbot changed the title Document the new enabled option for Monolog handlers Document the new enabled option for Monolog handlers Oct 20, 2025
logging.rst Outdated
.. _logging-handler-fingers_crossed:


.. note::
Copy link
Member

Choose a reason for hiding this comment

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

I would not use a note. That's feature.

Also, you should add .. versionadded:: 3.11

.. versionadded:: 3.5
The ``#[WithMonologChannel]`` attribute was introduced in Monolog 3.5.0.

Copy link
Author

Choose a reason for hiding this comment

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

The versionadded is the Symfony version.
This is the linter error :

Error: You are not allowed to use version "3.11.0". Only major version "7" is allowed.
Error: Please only provide ".. versionadded::" if the version is greater/equal "7.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants