@@ -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,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( |
@@ -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( |
@@ -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 ChromePHPHandler( |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | 18 | $handler = $this->getHandlerManager()->get($options['handler']); |
| 19 | - $deduplicationStore = $options['deduplicationStore'] ?? null; |
|
| 20 | - $deduplicationLevel = (int) ($options['deduplicationLevel'] ?? Logger::ERROR); |
|
| 21 | - $time = (int) ($options['time'] ?? 60); |
|
| 19 | + $deduplicationStore = $options['deduplicationStore'] ?? null; |
|
| 20 | + $deduplicationLevel = (int) ($options['deduplicationLevel'] ?? Logger::ERROR); |
|
| 21 | + $time = (int) ($options['time'] ?? 60); |
|
| 22 | 22 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 23 | 23 | |
| 24 | 24 | return new DeduplicationHandler( |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | 18 | $client = $this->getService($options['client'] ?? null); |
| 19 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 19 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | 20 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 21 | 21 | |
| 22 | 22 | return new DoctrineCouchDBHandler( |