diff --git a/logging.rst b/logging.rst index 8a0cd772b61..dd4d8a87c62 100644 --- a/logging.rst +++ b/logging.rst @@ -74,7 +74,7 @@ to write logs using the :phpfunction:`syslog` function: .. code-block:: yaml - # config/packages/monolog.yaml + # config/packages/prod/monolog.yaml monolog: handlers: # this "file_log" key could be anything @@ -92,7 +92,7 @@ to write logs using the :phpfunction:`syslog` function: .. code-block:: xml - + loadFromExtension('monolog', array( 'handlers' => array( 'file_log' => array( @@ -150,7 +150,7 @@ one of the messages reaches an ``action_level``. Take this example: .. code-block:: yaml - # config/packages/monolog.yaml + # config/packages/prod/monolog.yaml monolog: handlers: filter_for_errors: @@ -171,7 +171,7 @@ one of the messages reaches an ``action_level``. Take this example: .. code-block:: xml - + loadFromExtension('monolog', array( 'handlers' => array( 'filter_for_errors' => array( @@ -264,7 +264,7 @@ option of your handler to ``rotating_file``: .. code-block:: yaml - # config/packages/dev/monolog.yaml + # config/packages/prod/monolog.yaml monolog: handlers: main: @@ -277,7 +277,7 @@ option of your handler to ``rotating_file``: .. code-block:: xml - + loadFromExtension('monolog', array( 'handlers' => array( 'main' => array( diff --git a/logging/channels_handlers.rst b/logging/channels_handlers.rst index d0b05d57333..b018e90b496 100644 --- a/logging/channels_handlers.rst +++ b/logging/channels_handlers.rst @@ -31,7 +31,7 @@ from the ``security`` channel: .. code-block:: yaml - # config/packages/monolog.yaml + # config/packages/prod/monolog.yaml monolog: handlers: security: @@ -48,7 +48,7 @@ from the ``security`` channel: .. code-block:: xml - + loadFromExtension('monolog', array( 'handlers' => array( 'security' => array( @@ -137,13 +137,13 @@ You can also configure additional channels without the need to tag your services .. code-block:: yaml - # config/packages/monolog.yaml + # config/packages/prod/monolog.yaml monolog: channels: ['foo', 'bar'] .. code-block:: xml - + loadFromExtension('monolog', array( 'channels' => array( 'foo', diff --git a/logging/processors.rst b/logging/processors.rst index a0aed56d5ac..d78bd00457f 100644 --- a/logging/processors.rst +++ b/logging/processors.rst @@ -109,7 +109,7 @@ Finally, set the formatter to be used on whatever handler you want: .. code-block:: yaml - # config/packages/monolog.yaml + # config/packages/prod/monolog.yaml monolog: handlers: main: @@ -120,7 +120,7 @@ Finally, set the formatter to be used on whatever handler you want: .. code-block:: xml - + loadFromExtension('monolog', array( 'handlers' => array( 'main' => array( diff --git a/reference/configuration/monolog.rst b/reference/configuration/monolog.rst index 5ecda0c31db..79dfbaf96f8 100644 --- a/reference/configuration/monolog.rst +++ b/reference/configuration/monolog.rst @@ -14,7 +14,7 @@ Full Default Configuration .. code-block:: yaml - # config/packages/monolog.yaml + # config/packages/prod/monolog.yaml monolog: handlers: @@ -80,7 +80,7 @@ Full Default Configuration .. code-block:: xml - +