From a4aa3448830cce8e651768fd414dd4f3d3b59945 Mon Sep 17 00:00:00 2001 From: Antoine Makdessi Date: Fri, 14 Aug 2020 09:32:31 +0200 Subject: [PATCH] Improve doc about log channel and env --- logging/channels_handlers.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/logging/channels_handlers.rst b/logging/channels_handlers.rst index 76f671e8ed3..04d41a8d3c2 100644 --- a/logging/channels_handlers.rst +++ b/logging/channels_handlers.rst @@ -25,7 +25,9 @@ Switching a Channel to a different Handler Now, suppose you want to log the ``security`` channel to a different file. To do this, create a new handler and configure it to log only messages -from the ``security`` channel: +from the ``security`` channel. +You might add this in `config/packages/monolog.yaml` to log in all environments, +or just `config/packages/prod/monolog.yaml` to happen only in prod: .. configuration-block::