We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 504bdd5 + a80a846 commit 936f1bbCopy full SHA for 936f1bb
logging/handlers.rst
@@ -73,14 +73,14 @@ To use it, declare it as a service:
73
74
// optionally, configure the handler using the constructor arguments (shown values are default)
75
$container->register(ElasticsearchLogstashHandler::class)
76
- ->setArguments(
+ ->setArguments([
77
'$endpoint' => "http://127.0.0.1:9200",
78
'$index' => "monolog",
79
'$client' => null,
80
'$level' => Logger::DEBUG,
81
'$bubble' => true,
82
'$elasticsearchVersion' => '1.0.0',
83
- )
+ ])
84
;
85
86
Then reference it in the Monolog configuration:
0 commit comments