PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
monolog
/
monolog
/
src
/
Monolog
/
Handler
<?php declare(strict_types=1); /* * This file is part of the Monolog package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler; use Monolog\ResettableInterface; use Monolog\Processor\ProcessorInterface; /** * Helper trait for implementing ProcessableInterface * * @author Jordi Boggiano <j.boggiano@seld.be> * * @phpstan-import-type Record from \Monolog\Logger */ trait ProcessableHandlerTrait { /** * @var callable[] * @phpstan-var array<ProcessorInterface|callable(Record): Record> */ protected $processors = []; /** * {@inheritDoc} */ public function pushProcessor(callable $callback): HandlerInterface { array_unshift($this->processors, $callback); return $this; } /** * {@inheritDoc} */ public function popProcessor(): callable { if (!$this->processors) { throw new \LogicException('You tried to pop from an empty processor stack.'); } return array_shift($this->processors); } /** * Processes a record. * * @phpstan-param Record $record * @phpstan-return Record */ protected function processRecord(array $record): array { foreach ($this->processors as $processor) { $record = $processor($record); } return $record; } protected function resetProcessors(): void { foreach ($this->processors as $processor) { if ($processor instanceof ResettableInterface) { $processor->reset(); } } } }
[-] PushoverHandler.php
[edit]
[-] DeduplicationHandler.php
[edit]
[-] FormattableHandlerTrait.php
[edit]
[-] PsrHandler.php
[edit]
[-] NoopHandler.php
[edit]
[-] SendGridHandler.php
[edit]
[-] RotatingFileHandler.php
[edit]
[-] LogglyHandler.php
[edit]
[-] ElasticsearchHandler.php
[edit]
[-] BrowserConsoleHandler.php
[edit]
[-] StreamHandler.php
[edit]
[-] InsightOpsHandler.php
[edit]
[-] SlackWebhookHandler.php
[edit]
[+]
..
[-] FingersCrossedHandler.php
[edit]
[-] TestHandler.php
[edit]
[+]
Slack
[-] FilterHandler.php
[edit]
[-] AbstractProcessingHandler.php
[edit]
[+]
SyslogUdp
[-] MissingExtensionException.php
[edit]
[-] FormattableHandlerInterface.php
[edit]
[-] DynamoDbHandler.php
[edit]
[-] RedisHandler.php
[edit]
[-] ElasticaHandler.php
[edit]
[-] SocketHandler.php
[edit]
[-] CubeHandler.php
[edit]
[-] MandrillHandler.php
[edit]
[-] CouchDBHandler.php
[edit]
[-] AbstractSyslogHandler.php
[edit]
[-] HandlerWrapper.php
[edit]
[-] SqsHandler.php
[edit]
[-] WebRequestRecognizerTrait.php
[edit]
[-] MongoDBHandler.php
[edit]
[-] TelegramBotHandler.php
[edit]
[-] FirePHPHandler.php
[edit]
[-] NullHandler.php
[edit]
[-] SyslogHandler.php
[edit]
[-] LogEntriesHandler.php
[edit]
[-] ProcessableHandlerTrait.php
[edit]
[-] DoctrineCouchDBHandler.php
[edit]
[-] ChromePHPHandler.php
[edit]
[-] ErrorLogHandler.php
[edit]
[-] ProcessHandler.php
[edit]
[-] AmqpHandler.php
[edit]
[-] GelfHandler.php
[edit]
[-] BufferHandler.php
[edit]
[+]
Curl
[-] RollbarHandler.php
[edit]
[-] FleepHookHandler.php
[edit]
[-] SlackHandler.php
[edit]
[-] WhatFailureGroupHandler.php
[edit]
[-] HandlerInterface.php
[edit]
[-] RedisPubSubHandler.php
[edit]
[-] OverflowHandler.php
[edit]
[-] MailHandler.php
[edit]
[-] LogmaticHandler.php
[edit]
[-] GroupHandler.php
[edit]
[-] NewRelicHandler.php
[edit]
[-] IFTTTHandler.php
[edit]
[-] AbstractHandler.php
[edit]
[-] Handler.php
[edit]
[-] NativeMailerHandler.php
[edit]
[-] SamplingHandler.php
[edit]
[-] SymfonyMailerHandler.php
[edit]
[-] FlowdockHandler.php
[edit]
[-] ZendMonitorHandler.php
[edit]
[-] FallbackGroupHandler.php
[edit]
[-] SyslogUdpHandler.php
[edit]
[-] ProcessableHandlerInterface.php
[edit]
[+]
FingersCrossed
[-] PHPConsoleHandler.php
[edit]
[-] SwiftMailerHandler.php
[edit]