@@ -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( |
@@ -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 RavenHandler( |
@@ -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, |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public function __invoke(array $options) |
17 | 17 | { |
18 | 18 | $logger = $this->getService($options['logger'] ?? 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 PsrHandler( |
@@ -16,10 +16,10 @@ |
||
16 | 16 | public function __invoke(array $options) |
17 | 17 | { |
18 | 18 | $client = $this->getService($options['client'] ?? []); |
19 | - $key = (string) ($options['key'] ?? ''); |
|
20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
19 | + $key = (string) ($options['key'] ?? ''); |
|
20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
22 | - $capSize = (int) ($options['capSize'] ?? 0); |
|
22 | + $capSize = (int) ($options['capSize'] ?? 0); |
|
23 | 23 | |
24 | 24 | return new RedisHandler( |
25 | 25 | $client, |
@@ -11,9 +11,9 @@ |
||
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 | $skipPartials = (array) ($options['skipClassesPartials'] ?? []); |
16 | - $skipFrameCount = (int) ($options['skipStackFramesCount'] ?? 0); |
|
16 | + $skipFrameCount = (int) ($options['skipStackFramesCount'] ?? 0); |
|
17 | 17 | |
18 | 18 | return new IntrospectionProcessor( |
19 | 19 | $level, |