@@ -16,10 +16,10 @@ |
||
16 | 16 | public function __invoke(array $options) |
17 | 17 | { |
18 | 18 | $client = $this->getService($options['client'] ?? null); |
19 | - $index = (string) ($options['index'] ?? 'monolog'); |
|
20 | - $type = (string) ($options['type'] ?? 'record'); |
|
19 | + $index = (string) ($options['index'] ?? 'monolog'); |
|
20 | + $type = (string) ($options['type'] ?? 'record'); |
|
21 | 21 | $ignoreError = (boolean) ($options['ignoreError'] ?? false); |
22 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
23 | 23 | $bubble = (boolean) ($options['bubble'] ?? true); |
24 | 24 | |
25 | 25 | return new ElasticaHandler( |
@@ -11,10 +11,10 @@ |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $token = (string) ($options['token'] ?? ''); |
|
15 | - $region = (string) ($options['region'] ?? ''); |
|
16 | - $useSSL = (bool) ($options['useSSL'] ?? true); |
|
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $token = (string) ($options['token'] ?? ''); |
|
15 | + $region = (string) ($options['region'] ?? ''); |
|
16 | + $useSSL = (bool) ($options['useSSL'] ?? true); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
19 | 19 | |
20 | 20 | return new InsightOpsHandler( |
@@ -11,9 +11,9 @@ |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $apiKey = (string) ($options['apiKey'] ?? ''); |
|
15 | - $channel = (string) ($options['channel'] ?? ''); |
|
16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $apiKey = (string) ($options['apiKey'] ?? ''); |
|
15 | + $channel = (string) ($options['channel'] ?? ''); |
|
16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
17 | 17 | $bubble = (boolean) ($options['bubble'] ?? true); |
18 | 18 | |
19 | 19 | return new TelegramBotHandler( |
@@ -17,8 +17,8 @@ |
||
17 | 17 | { |
18 | 18 | $sqsClient = $this->getService($options['sqsClient'] ?? null); |
19 | 19 | |
20 | - $queueUrl = (string) ($options['queueUrl'] ?? Logger::DEBUG); |
|
21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
20 | + $queueUrl = (string) ($options['queueUrl'] ?? Logger::DEBUG); |
|
21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | 22 | $bubble = (boolean) ($options['bubble'] ?? true); |
23 | 23 | |
24 | 24 | return new SqsHandler($sqsClient, $queueUrl, $level, $bubble); |