Skip to content

Commit a4aa344

Browse files
Improve doc about log channel and env
1 parent 4d52670 commit a4aa344

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

logging/channels_handlers.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ Switching a Channel to a different Handler
2525

2626
Now, suppose you want to log the ``security`` channel to a different file.
2727
To do this, create a new handler and configure it to log only messages
28-
from the ``security`` channel:
28+
from the ``security`` channel.
29+
You might add this in `config/packages/monolog.yaml` to log in all environments,
30+
or just `config/packages/prod/monolog.yaml` to happen only in prod:
2931

3032
.. configuration-block::
3133

0 commit comments

Comments
 (0)