@@ -11,9 +11,9 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $token = (string) ($options['token'] ?? ''); |
|
| 14 | + $token = (string) ($options['token'] ?? ''); |
|
| 15 | 15 | $useSSL = (boolean) ($options['useSSL'] ?? true); |
| 16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 17 | 17 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 18 | 18 | |
| 19 | 19 | return new LogEntriesHandler( |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $mailer = $this->getService($options['mailer'] ?? null); |
| 18 | 18 | $message = $this->getSwiftMessage($options); |
| 19 | 19 | |
| 20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 22 | 22 | |
| 23 | 23 | return new SwiftMailerHandler($mailer, $message, $level, $bubble); |
@@ -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 BrowserConsoleHandler( |
@@ -11,16 +11,16 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $token = (string) ($options['token'] ?? ''); |
|
| 15 | - $channel = (string) ($options['channel'] ?? ''); |
|
| 16 | - $userName = $options['userName'] ?? null; |
|
| 14 | + $token = (string) ($options['token'] ?? ''); |
|
| 15 | + $channel = (string) ($options['channel'] ?? ''); |
|
| 16 | + $userName = $options['userName'] ?? null; |
|
| 17 | 17 | $useAttachment = (boolean) ($options['useAttachment'] ?? true); |
| 18 | - $iconEmoji = $options['iconEmoji'] ?? null; |
|
| 19 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | + $iconEmoji = $options['iconEmoji'] ?? null; |
|
| 19 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | 20 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 21 | 21 | $useShortAttachment = (boolean) ($options['useShortAttachment'] ?? false); |
| 22 | 22 | $includeContext = (boolean) ($options['includeContextAndExtra'] ?? false); |
| 23 | - $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
| 23 | + $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
| 24 | 24 | |
| 25 | 25 | return new SlackHandler( |
| 26 | 26 | $token, |
@@ -11,9 +11,9 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $eventName = (string) ($options['eventName'] ?? ''); |
|
| 15 | - $secretKey = (string) ($options['secretKey'] ?? ''); |
|
| 16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $eventName = (string) ($options['eventName'] ?? ''); |
|
| 15 | + $secretKey = (string) ($options['secretKey'] ?? ''); |
|
| 16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 17 | 17 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 18 | 18 | |
| 19 | 19 | return new IFTTTHandler( |
@@ -11,12 +11,12 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $host = (string) ($options['host'] ?? ''); |
|
| 15 | - $port = (int) ($options['host'] ?? 514); |
|
| 16 | - $facility = (int) ($options['facility'] ?? LOG_USER); |
|
| 17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $host = (string) ($options['host'] ?? ''); |
|
| 15 | + $port = (int) ($options['host'] ?? 514); |
|
| 16 | + $facility = (int) ($options['facility'] ?? LOG_USER); |
|
| 17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 19 | - $ident = (string) ($options['ident'] ?? 'php'); |
|
| 19 | + $ident = (string) ($options['ident'] ?? 'php'); |
|
| 20 | 20 | |
| 21 | 21 | return new SyslogUdpHandler( |
| 22 | 22 | $host, |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $token = (string) ($options['token'] ?? ''); |
|
| 15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $token = (string) ($options['token'] ?? ''); |
|
| 15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 16 | 16 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 17 | 17 | |
| 18 | 18 | return new FleepHookHandler( |
@@ -11,11 +11,11 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $ident = (string) ($options['ident'] ?? ''); |
|
| 15 | - $facility = (int) ($options['facility'] ?? LOG_USER); |
|
| 16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $ident = (string) ($options['ident'] ?? ''); |
|
| 15 | + $facility = (int) ($options['facility'] ?? LOG_USER); |
|
| 16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 17 | 17 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 18 | - $logOpts = (int) ($options['logOpts'] ?? LOG_PID); |
|
| 18 | + $logOpts = (int) ($options['logOpts'] ?? LOG_PID); |
|
| 19 | 19 | |
| 20 | 20 | return new SyslogHandler($ident, $facility, $level, $bubble, $logOpts); |
| 21 | 21 | } |
@@ -11,16 +11,16 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $webhookUrl = (string) ($options['webhookUrl'] ?? ''); |
|
| 15 | - $channel = $options['channel'] ?? null; |
|
| 16 | - $userName = $options['userName'] ?? null; |
|
| 14 | + $webhookUrl = (string) ($options['webhookUrl'] ?? ''); |
|
| 15 | + $channel = $options['channel'] ?? null; |
|
| 16 | + $userName = $options['userName'] ?? null; |
|
| 17 | 17 | $useAttachment = (boolean) ($options['useAttachment'] ?? true); |
| 18 | - $iconEmoji = $options['iconEmoji'] ?? null; |
|
| 18 | + $iconEmoji = $options['iconEmoji'] ?? null; |
|
| 19 | 19 | $useShortAttachment = (boolean) ($options['useShortAttachment'] ?? false); |
| 20 | 20 | $includeContext = (boolean) ($options['includeContextAndExtra'] ?? false); |
| 21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 22 | 22 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 23 | - $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
| 23 | + $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
| 24 | 24 | |
| 25 | 25 | return new SlackWebhookHandler( |
| 26 | 26 | $webhookUrl, |