Skip to content

Commit 22217fa

Browse files
committed
Document new Logstash handler argument
1 parent 762f73b commit 22217fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

logging/handlers.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ To use it, declare it as a service:
3434
$client: null
3535
$level: !php/const Monolog\Logger::DEBUG
3636
$bubble: true
37+
$elasticsearchVersion: '1.0.0'
3738
3839
.. code-block:: xml
3940
@@ -57,6 +58,7 @@ To use it, declare it as a service:
5758
<argument key="client"/>
5859
<argument key="level" type="constant">Monolog\Logger::DEBUG</argument>
5960
<argument key="bubble">true</argument>
61+
<argument key="elasticsearchVersion">1.0.0</argument>
6062
</service>
6163
</services>
6264
</container>
@@ -77,9 +79,14 @@ To use it, declare it as a service:
7779
'$client' => null,
7880
'$level' => Logger::DEBUG,
7981
'$bubble' => true,
82+
'$elasticsearchVersion' => '1.0.0',
8083
)
8184
;
8285
86+
.. versionadded:: 5.4
87+
88+
The ``$elasticsearchVersion`` argument was introduced in Symfony 5.4.
89+
8390
Then reference it in the Monolog configuration:
8491

8592
.. configuration-block::

0 commit comments

Comments
 (0)