From 685bd6a170da8d6d673af27d67e667a071c1d4d4 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 7 Dec 2025 19:25:40 +0100 Subject: [PATCH] [Logger] Removing `channels: ~` Page: https://symfony.com/doc/6.4/logging/channels_handlers.html Reason: PHP's equivalent of YAML's `~` is `null`, right? However, I couldn't get this to work with Symfony's new array shape config, so I'm figuring this info does more harm than good. --- logging/channels_handlers.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/logging/channels_handlers.rst b/logging/channels_handlers.rst index 3cac1d01ba5..107229fb9be 100644 --- a/logging/channels_handlers.rst +++ b/logging/channels_handlers.rst @@ -108,14 +108,14 @@ You can specify the configuration in different ways: .. code-block:: yaml - channels: ~ # Include all the channels - channels: foo # Include only channel 'foo' channels: '!foo' # Include all channels, except 'foo' channels: [foo, bar] # Include only channels 'foo' and 'bar' channels: ['!foo', '!bar'] # Include all channels, except 'foo' and 'bar' +To include *all* channels, just omit the ``channels`` key. + Creating your own Channel -------------------------