@@ -11,10 +11,10 @@ |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $connectionString = (string) ($options['connectionString'] ?? ''); |
|
15 | - $timeout = (string) ($options['timeout'] ?? ''); |
|
16 | - $writeTimeout = (int) ($options['writeTimeout'] ?? ''); |
|
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $connectionString = (string) ($options['connectionString'] ?? ''); |
|
15 | + $timeout = (string) ($options['timeout'] ?? ''); |
|
16 | + $writeTimeout = (int) ($options['writeTimeout'] ?? ''); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
19 | 19 | |
20 | 20 | $handler = new SocketHandler( |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
15 | 15 | $bubble = (boolean) ($options['bubble'] ?? true); |
16 | 16 | |
17 | 17 | return new FirePHPHandler( |
@@ -11,10 +11,10 @@ |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $slackTeam = (string) ($options['slackTeam'] ?? ''); |
|
15 | - $token = (string) ($options['token'] ?? ''); |
|
16 | - $channel = (string) ($options['channel'] ?? ''); |
|
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $slackTeam = (string) ($options['slackTeam'] ?? ''); |
|
15 | + $token = (string) ($options['token'] ?? ''); |
|
16 | + $channel = (string) ($options['channel'] ?? ''); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
19 | 19 | |
20 | 20 | return new SlackbotHandler( |
@@ -11,12 +11,12 @@ |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $host = (string) ($options['host'] ?? 'localhost'); |
|
15 | - $port = (int) ($options['port'] ?? 5984); |
|
16 | - $dbname = (string) ($options['port'] ?? 'logger'); |
|
17 | - $userName = (string) ($options['username'] ?? ''); |
|
18 | - $password = (string) ($options['password'] ?? ''); |
|
19 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $host = (string) ($options['host'] ?? 'localhost'); |
|
15 | + $port = (int) ($options['port'] ?? 5984); |
|
16 | + $dbname = (string) ($options['port'] ?? 'logger'); |
|
17 | + $userName = (string) ($options['username'] ?? ''); |
|
18 | + $password = (string) ($options['password'] ?? ''); |
|
19 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
20 | 20 | $bubble = (boolean) ($options['bubble'] ?? true); |
21 | 21 | |
22 | 22 | return new CouchDBHandler( |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
15 | 15 | $bubble = (boolean) ($options['bubble'] ?? true); |
16 | 16 | |
17 | 17 | return new TestHandler( |
@@ -16,8 +16,8 @@ |
||
16 | 16 | public function __invoke(array $options) |
17 | 17 | { |
18 | 18 | $client = $this->getService($options['client'] ?? null); |
19 | - $table = $options['table'] ?? null; |
|
20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
19 | + $table = $options['table'] ?? null; |
|
20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
22 | 22 | |
23 | 23 | return new DynamoDbHandler( |
@@ -15,8 +15,8 @@ |
||
15 | 15 | public function __invoke(array $options) |
16 | 16 | { |
17 | 17 | $handler = $this->getHandlerManager()->get($options['handler']); |
18 | - $minLevelOrList = $options['minLevelOrList'] ?? null; |
|
19 | - $maxLevel = $options['maxLevel'] ?? null; |
|
18 | + $minLevelOrList = $options['minLevelOrList'] ?? null; |
|
19 | + $maxLevel = $options['maxLevel'] ?? null; |
|
20 | 20 | $bubble = (boolean) ($options['bubble'] ?? true); |
21 | 21 | |
22 | 22 | return new FilterHandler( |
@@ -11,12 +11,12 @@ |
||
11 | 11 | { |
12 | 12 | public function __invoke(array $options) |
13 | 13 | { |
14 | - $toEmail = (array) ($options['to'] ?? []); |
|
15 | - $subject = (string) ($options['subject'] ?? true); |
|
16 | - $fromEmail = (string) ($options['from'] ?? ''); |
|
17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
14 | + $toEmail = (array) ($options['to'] ?? []); |
|
15 | + $subject = (string) ($options['subject'] ?? true); |
|
16 | + $fromEmail = (string) ($options['from'] ?? ''); |
|
17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
19 | - $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70); |
|
19 | + $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70); |
|
20 | 20 | |
21 | 21 | return new NativeMailerHandler($toEmail, $subject, $fromEmail, $level, $bubble, $maxColumnWidth); |
22 | 22 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | public function __invoke(array $options) |
20 | 20 | { |
21 | 21 | $publisher = $this->getService($options['publisher'] ?? mull); |
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 GelfHandler( |