@@ -17,9 +17,9 @@ |
||
17 | 17 | public function __invoke(array $options) |
18 | 18 | { |
19 | 19 | $client = $this->getService($options['client'] ?? null); |
20 | - $database = (string) ($options['database'] ?? ''); |
|
21 | - $collection = (string) ($options['collection'] ?? ''); |
|
22 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
20 | + $database = (string) ($options['database'] ?? ''); |
|
21 | + $collection = (string) ($options['collection'] ?? ''); |
|
22 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
23 | 23 | $bubble = (bool) ($options['bubble'] ?? true); |
24 | 24 | |
25 | 25 | return new MongoDBHandler( |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function __invoke(array $options) |
18 | 18 | { |
19 | 19 | $publisher = $this->getService($options['publisher'] ?? null); |
20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | 21 | $bubble = (bool) ($options['bubble'] ?? true); |
22 | 22 | |
23 | 23 | return new GelfHandler( |
@@ -18,7 +18,7 @@ |
||
18 | 18 | $mailer = $this->getService($options['mailer'] ?? null); |
19 | 19 | $message = $this->getSwiftMessage($options); |
20 | 20 | |
21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | 22 | $bubble = (bool) ($options['bubble'] ?? true); |
23 | 23 | |
24 | 24 | return new SwiftMailerHandler($mailer, $message, $level, $bubble); |
@@ -17,10 +17,10 @@ |
||
17 | 17 | public function __invoke(array $options) |
18 | 18 | { |
19 | 19 | $client = $this->getService($options['client'] ?? []); |
20 | - $key = (string) ($options['key'] ?? ''); |
|
21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
20 | + $key = (string) ($options['key'] ?? ''); |
|
21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | 22 | $bubble = (bool) ($options['bubble'] ?? true); |
23 | - $capSize = (int) ($options['capSize'] ?? 0); |
|
23 | + $capSize = (int) ($options['capSize'] ?? 0); |
|
24 | 24 | |
25 | 25 | return new RedisHandler( |
26 | 26 | $client, |
@@ -28,9 +28,9 @@ |
||
28 | 28 | { |
29 | 29 | $stream = $this->getStream($options['stream'] ?? null); |
30 | 30 | |
31 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
31 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
32 | 32 | $bubble = (bool) ($options['bubble'] ?? true); |
33 | - $filePermission = (int) ($options['filePermission'] ?? 0644); |
|
33 | + $filePermission = (int) ($options['filePermission'] ?? 0644); |
|
34 | 34 | $useLocking = (bool) ($options['useLocking'] ?? true); |
35 | 35 | |
36 | 36 | return new StreamHandler($stream, $level, $bubble, $filePermission, $useLocking); |
@@ -16,8 +16,8 @@ |
||
16 | 16 | public function __invoke(array $options) |
17 | 17 | { |
18 | 18 | $handler = $this->getHandlerManager()->get($options['handler']); |
19 | - $minLevelOrList = $options['minLevelOrList'] ?? null; |
|
20 | - $maxLevel = $options['maxLevel'] ?? null; |
|
19 | + $minLevelOrList = $options['minLevelOrList'] ?? null; |
|
20 | + $maxLevel = $options['maxLevel'] ?? null; |
|
21 | 21 | $bubble = (bool) ($options['bubble'] ?? true); |
22 | 22 | |
23 | 23 | return new FilterHandler( |
@@ -12,12 +12,12 @@ |
||
12 | 12 | { |
13 | 13 | public function __invoke(array $options) |
14 | 14 | { |
15 | - $host = (string) ($options['host'] ?? 'localhost'); |
|
16 | - $port = (int) ($options['port'] ?? 5984); |
|
17 | - $dbname = (string) ($options['port'] ?? 'logger'); |
|
18 | - $userName = (string) ($options['username'] ?? ''); |
|
19 | - $password = (string) ($options['password'] ?? ''); |
|
20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
15 | + $host = (string) ($options['host'] ?? 'localhost'); |
|
16 | + $port = (int) ($options['port'] ?? 5984); |
|
17 | + $dbname = (string) ($options['port'] ?? 'logger'); |
|
18 | + $userName = (string) ($options['username'] ?? ''); |
|
19 | + $password = (string) ($options['password'] ?? ''); |
|
20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | 21 | $bubble = (bool) ($options['bubble'] ?? true); |
22 | 22 | |
23 | 23 | return new CouchDBHandler( |
@@ -17,10 +17,10 @@ |
||
17 | 17 | public function __invoke(array $options) |
18 | 18 | { |
19 | 19 | $client = $this->getService($options['client'] ?? null); |
20 | - $index = (string) ($options['index'] ?? 'monolog'); |
|
21 | - $type = (string) ($options['type'] ?? 'record'); |
|
20 | + $index = (string) ($options['index'] ?? 'monolog'); |
|
21 | + $type = (string) ($options['type'] ?? 'record'); |
|
22 | 22 | $ignoreError = (bool) ($options['ignoreError'] ?? false); |
23 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
23 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
24 | 24 | $bubble = (bool) ($options['bubble'] ?? true); |
25 | 25 | |
26 | 26 | return new ElasticaHandler( |
@@ -12,9 +12,9 @@ |
||
12 | 12 | { |
13 | 13 | public function __invoke(array $options) |
14 | 14 | { |
15 | - $eventName = (string) ($options['eventName'] ?? ''); |
|
16 | - $secretKey = (string) ($options['secretKey'] ?? ''); |
|
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
15 | + $eventName = (string) ($options['eventName'] ?? ''); |
|
16 | + $secretKey = (string) ($options['secretKey'] ?? ''); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (bool) ($options['bubble'] ?? true); |
19 | 19 | |
20 | 20 | return new IFTTTHandler( |