/home/desid573/public_html/tollster/vendor/monolog/monolog/src/Monolog/Handler
NameSizeModeActions
Curl/-0755rm
FingersCrossed/-0755rm
Slack/-0755rm
SyslogUdp/-0755rm
AbstractHandler.php41270644editdlrm
AbstractProcessingHandler.php14980644editdlrm
AbstractSyslogHandler.php33820644editdlrm
AmqpHandler.php38660644editdlrm
BrowserConsoleHandler.php71620644editdlrm
BufferHandler.php34360644editdlrm
ChromePHPHandler.php56230644editdlrm
CouchDBHandler.php19530644editdlrm
CubeHandler.php46310644editdlrm
DeduplicationHandler.php54790644editdlrm
DoctrineCouchDBHandler.php10000644editdlrm
DynamoDbHandler.php24400644editdlrm
ElasticSearchHandler.php34170644editdlrm
ErrorLogHandler.php23800644editdlrm
FilterHandler.php44250644editdlrm
FingersCrossedHandler.php56370644editdlrm
FirePHPHandler.php54660644editdlrm
FleepHookHandler.php33630644editdlrm
FlowdockHandler.php33570644editdlrm
GelfHandler.php20680644editdlrm
GroupHandler.php24960644editdlrm
HandlerInterface.php25970644editdlrm
HandlerWrapper.php21560644editdlrm
HipChatHandler.php103470644editdlrm
IFTTTHandler.php21180644editdlrm
LogEntriesHandler.php16010644editdlrm
LogglyHandler.php26190644editdlrm
MailHandler.php16220644editdlrm
MandrillHandler.php21560644editdlrm
MissingExtensionException.php4500644editdlrm
MongoDBHandler.php16060644editdlrm
NativeMailerHandler.php52060644editdlrm
NewRelicHandler.php60150644editdlrm
NullHandler.php9530644editdlrm
PHPConsoleHandler.php99900644editdlrm
PsrHandler.php14330644editdlrm
PushoverHandler.php66290644editdlrm
RavenHandler.php71150644editdlrm
RedisHandler.php28890644editdlrm
RollbarHandler.php38120644editdlrm
RotatingFileHandler.php56870644editdlrm
SamplingHandler.php26740644editdlrm
SlackbotHandler.php20290644editdlrm
SlackHandler.php63810644editdlrm
SlackWebhookHandler.php37370644editdlrm
SocketHandler.php88840644editdlrm
StreamHandler.php52030644editdlrm
SwiftMailerHandler.php30950644editdlrm
SyslogHandler.php18480644editdlrm
SyslogUdpHandler.php25800644editdlrm
TestHandler.php46760644editdlrm
WhatFailureGroupHandler.php14850644editdlrm
ZendMonitorHandler.php22400644editdlrm
Edit: /home/desid573/public_html/tollster/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php (4127B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler; use Monolog\Logger; use Monolog\Formatter\FormatterInterface; use Monolog\Formatter\LineFormatter; /** * Base Handler class providing the Handler structure * * @author Jordi Boggiano */ abstract class AbstractHandler implements HandlerInterface { protected $level = Logger::DEBUG; protected $bubble = true; /** * @var FormatterInterface */ protected $formatter; protected $processors = array(); /** * @param int $level The minimum logging level at which this handler will be triggered * @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($level = Logger::DEBUG, $bubble = true) { $this->setLevel($level); $this->bubble = $bubble; } /** * {@inheritdoc} */ public function isHandling(array $record) { return $record['level'] >= $this->level; } /** * {@inheritdoc} */ public function handleBatch(array $records) { foreach ($records as $record) { $this->handle($record); } } /** * Closes the handler. * * This will be called automatically when the object is destroyed */ public function close() { } /** * {@inheritdoc} */ public function pushProcessor($callback) { if (!is_callable($callback)) { throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), '.var_export($callback, true).' given'); } array_unshift($this->processors, $callback); return $this; } /** * {@inheritdoc} */ public function popProcessor() { if (!$this->processors) { throw new \LogicException('You tried to pop from an empty processor stack.'); } return array_shift($this->processors); } /** * {@inheritdoc} */ public function setFormatter(FormatterInterface $formatter) { $this->formatter = $formatter; return $this; } /** * {@inheritdoc} */ public function getFormatter() { if (!$this->formatter) { $this->formatter = $this->getDefaultFormatter(); } return $this->formatter; } /** * Sets minimum logging level at which this handler will be triggered. * * @param int|string $level Level or level name * @return self */ public function setLevel($level) { $this->level = Logger::toMonologLevel($level); return $this; } /** * Gets minimum logging level at which this handler will be triggered. * * @return int */ public function getLevel() { return $this->level; } /** * Sets the bubbling behavior. * * @param Boolean $bubble true means that this handler allows bubbling. * false means that bubbling is not permitted. * @return self */ public function setBubble($bubble) { $this->bubble = $bubble; return $this; } /** * Gets the bubbling behavior. * * @return Boolean true means that this handler allows bubbling. * false means that bubbling is not permitted. */ public function getBubble() { return $this->bubble; } public function __destruct() { try { $this->close(); } catch (\Exception $e) { // do nothing } catch (\Throwable $e) { // do nothing } } /** * Gets the default formatter. * * @return FormatterInterface */ protected function getDefaultFormatter() { return new LineFormatter(); } }