@@ -17,8 +17,8 @@ |
||
| 17 | 17 | public function __invoke(array $options) |
| 18 | 18 | { |
| 19 | 19 | $handler = $this->getHandlerManager()->get($options['handler']); |
| 20 | - $bufferLimit = (int) ($options['bufferLimit'] ?? 0); |
|
| 21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | + $bufferLimit = (int) ($options['bufferLimit'] ?? 0); |
|
| 21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 22 | 22 | $bubble = (bool) ($options['bubble'] ?? true); |
| 23 | 23 | $flushOnOverflow = (bool) ($options['flushOnOverflow'] ?? true); |
| 24 | 24 | |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function __invoke(array $options) |
| 20 | 20 | { |
| 21 | - $token = (string) ($options['token'] ?? ''); |
|
| 22 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | + $token = (string) ($options['token'] ?? ''); |
|
| 22 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 23 | 23 | $bubble = (bool) ($options['bubble'] ?? true); |
| 24 | 24 | |
| 25 | 25 | return new FleepHookHandler( |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | public function __invoke(array $options) |
| 18 | 18 | { |
| 19 | 19 | $client = $this->getService($options['client'] ?? null); |
| 20 | - $table = (string) ($options['table'] ?? null); |
|
| 21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | + $table = (string) ($options['table'] ?? null); |
|
| 21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 22 | 22 | $bubble = (bool) ($options['bubble'] ?? true); |
| 23 | 23 | |
| 24 | 24 | return new DynamoDbHandler( |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | public function __invoke(array $options) |
| 14 | 14 | { |
| 15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 16 | 16 | $bubble = (bool) ($options['bubble'] ?? true); |
| 17 | 17 | |
| 18 | 18 | return new TestHandler( |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | |
| 17 | 17 | public function __invoke(array $options) |
| 18 | 18 | { |
| 19 | - $consoleOptions = (array) ($options['options'] ?? []); |
|
| 19 | + $consoleOptions = (array) ($options['options'] ?? []); |
|
| 20 | 20 | $connector = $this->getService($options['connector'] ?? null); |
| 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 PHPConsoleHandler( |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | |
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | - $apiKey = (string) ($options['apiKey'] ?? ''); |
|
| 18 | + $apiKey = (string) ($options['apiKey'] ?? ''); |
|
| 19 | 19 | $message = $this->getSwiftMessage($options); |
| 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 MandrillHandler( |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | { |
| 13 | 13 | public function __invoke(array $options) |
| 14 | 14 | { |
| 15 | - $messageType = (int) ($options['messageType'] ?? ErrorLogHandler::OPERATING_SYSTEM); |
|
| 16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 15 | + $messageType = (int) ($options['messageType'] ?? ErrorLogHandler::OPERATING_SYSTEM); |
|
| 16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 17 | 17 | $bubble = (bool) ($options['bubble'] ?? true); |
| 18 | 18 | $expandNewlines = (bool) ($options['expandNewlines'] ?? false); |
| 19 | 19 | |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | { |
| 13 | 13 | public function __invoke(array $options) |
| 14 | 14 | { |
| 15 | - $command = (string) ($options['command'] ?? null); |
|
| 16 | - $cwd = (string) ($options['cwd'] ?? null); |
|
| 17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 15 | + $command = (string) ($options['command'] ?? null); |
|
| 16 | + $cwd = (string) ($options['cwd'] ?? null); |
|
| 17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | 18 | $bubble = (bool) ($options['bubble'] ?? true); |
| 19 | 19 | |
| 20 | 20 | return new ProcessHandler( |
@@ -12,11 +12,11 @@ |
||
| 12 | 12 | { |
| 13 | 13 | public function __invoke(array $options) |
| 14 | 14 | { |
| 15 | - $ident = (string) ($options['ident'] ?? ''); |
|
| 16 | - $facility = (int) ($options['facility'] ?? LOG_USER); |
|
| 17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 15 | + $ident = (string) ($options['ident'] ?? ''); |
|
| 16 | + $facility = (int) ($options['facility'] ?? LOG_USER); |
|
| 17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | 18 | $bubble = (bool) ($options['bubble'] ?? true); |
| 19 | - $logOpts = (int) ($options['logOpts'] ?? LOG_PID); |
|
| 19 | + $logOpts = (int) ($options['logOpts'] ?? LOG_PID); |
|
| 20 | 20 | |
| 21 | 21 | return new SyslogHandler($ident, $facility, $level, $bubble, $logOpts); |
| 22 | 22 | } |