File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ handler with buffering capabilities (like the ``FingersCrossedHandler`` or
20
20
``BufferHandler ``) in order to call Elasticsearch only once with a bulk push. For
21
21
even better performance and fault tolerance, a proper `ELK stack `_ is recommended.
22
22
23
- To use it, declare it as a service:
24
-
23
+ You need to declare it as a service first:
25
24
26
25
.. configuration-block ::
27
26
@@ -53,12 +52,11 @@ To use it, declare it as a service:
53
52
// config/services.php
54
53
use App\Logger\SessionRequestProcessor;
55
54
use Monolog\Formatter\LineFormatter;
56
- use Symfony\\ Bridge\\ Monolog\\ Handler\ \ElasticsearchLogstashHandler;
55
+ use Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler;
57
56
58
57
$container->register(ElasticsearchLogstashHandler::class);
59
58
60
- then reference it in monolog configuration:
61
-
59
+ then use this referenced service in your monolog configuration:
62
60
63
61
.. configuration-block ::
64
62
@@ -94,8 +92,8 @@ then reference it in monolog configuration:
94
92
95
93
.. code-block :: php
96
94
97
- use Symfony\\Bridge\\Monolog\\Handler\\ElasticsearchLogstashHandler;
98
95
// config/packages/prod/monolog.php
96
+ use Symfony\Bridge\Monolog\Handler\ElasticsearchLogstashHandler;
99
97
$container->loadFromExtension('monolog', [
100
98
'handlers' => [
101
99
'es' => [
You can’t perform that action at this time.
0 commit comments