X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/monolog/monolog/src/Monolog/Handler
home
/
prisjneg
/
public_html
/
vendor
/
monolog
/
monolog
/
src
/
Monolog
/
Handler
/
π
..
π
AbstractHandler.php
(2.61 KB)
π
AbstractProcessingHandler.php
(1.46 KB)
π
AbstractSyslogHandler.php
(3.15 KB)
π
AmqpHandler.php
(4.95 KB)
π
BrowserConsoleHandler.php
(9.02 KB)
π
BufferHandler.php
(4.55 KB)
π
ChromePHPHandler.php
(4.79 KB)
π
CouchDBHandler.php
(2.55 KB)
π
CubeHandler.php
(5.32 KB)
π
Curl
π
DeduplicationHandler.php
(6.25 KB)
π
DoctrineCouchDBHandler.php
(1.12 KB)
π
DynamoDbHandler.php
(1.89 KB)
π
ElasticaHandler.php
(3.66 KB)
π
ElasticsearchHandler.php
(7.1 KB)
π
ErrorLogHandler.php
(2.61 KB)
π
FallbackGroupHandler.php
(1.68 KB)
π
FilterHandler.php
(6.92 KB)
π
FingersCrossed
π
FingersCrossedHandler.php
(7.99 KB)
π
FirePHPHandler.php
(5.03 KB)
π
FleepHookHandler.php
(3.44 KB)
π
FlowdockHandler.php
(3.4 KB)
π
FormattableHandlerInterface.php
(757 B)
π
FormattableHandlerTrait.php
(1.24 KB)
π
GelfHandler.php
(1.42 KB)
π
GroupHandler.php
(3.19 KB)
π
Handler.php
(1.21 KB)
π
HandlerInterface.php
(2.71 KB)
π
HandlerWrapper.php
(3.28 KB)
π
IFTTTHandler.php
(2.22 KB)
π
InsightOpsHandler.php
(2.04 KB)
π
LogEntriesHandler.php
(1.86 KB)
π
LogglyHandler.php
(4.02 KB)
π
LogmaticHandler.php
(2.57 KB)
π
MailHandler.php
(2.19 KB)
π
MandrillHandler.php
(2.48 KB)
π
MissingExtensionException.php
(473 B)
π
MongoDBHandler.php
(2.31 KB)
π
NativeMailerHandler.php
(5.08 KB)
π
NewRelicHandler.php
(5.7 KB)
π
NoopHandler.php
(908 B)
π
NullHandler.php
(1.3 KB)
π
OverflowHandler.php
(4.21 KB)
π
PHPConsoleHandler.php
(12.01 KB)
π
ProcessHandler.php
(5.36 KB)
π
ProcessableHandlerInterface.php
(1.16 KB)
π
ProcessableHandlerTrait.php
(1.58 KB)
π
PsrHandler.php
(2.41 KB)
π
PushoverHandler.php
(7.92 KB)
π
RedisHandler.php
(2.67 KB)
π
RedisPubSubHandler.php
(1.64 KB)
π
RollbarHandler.php
(3.48 KB)
π
RotatingFileHandler.php
(6.97 KB)
π
SamplingHandler.php
(3.83 KB)
π
SendGridHandler.php
(3.02 KB)
π
Slack
π
SlackHandler.php
(6.99 KB)
π
SlackWebhookHandler.php
(3.79 KB)
π
SocketHandler.php
(11.84 KB)
π
SqsHandler.php
(1.71 KB)
π
StreamHandler.php
(7.96 KB)
π
SymfonyMailerHandler.php
(3.45 KB)
π
SyslogHandler.php
(1.65 KB)
π
SyslogUdp
π
SyslogUdpHandler.php
(4.6 KB)
π
TelegramBotHandler.php
(9.22 KB)
π
TestHandler.php
(6.6 KB)
π
WebRequestRecognizerTrait.php
(504 B)
π
WhatFailureGroupHandler.php
(1.87 KB)
π
ZendMonitorHandler.php
(2.78 KB)
Editing: RedisPubSubHandler.php
<?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\Formatter\LineFormatter; use Monolog\Formatter\FormatterInterface; use Monolog\Level; use Monolog\LogRecord; use Predis\Client as Predis; use Redis; /** * Sends the message to a Redis Pub/Sub channel using PUBLISH * * usage example: * * $log = new Logger('application'); * $redis = new RedisPubSubHandler(new Predis\Client("tcp://localhost:6379"), "logs", Level::Warning); * $log->pushHandler($redis); * * @author Gaëtan Faugère <gaetan@fauge.re> */ class RedisPubSubHandler extends AbstractProcessingHandler { /** @var Predis<Predis>|Redis */ private Predis|Redis $redisClient; private string $channelKey; /** * @param Predis<Predis>|Redis $redis The redis instance * @param string $key The channel key to publish records to */ public function __construct(Predis|Redis $redis, string $key, int|string|Level $level = Level::Debug, bool $bubble = true) { $this->redisClient = $redis; $this->channelKey = $key; parent::__construct($level, $bubble); } /** * @inheritDoc */ protected function write(LogRecord $record): void { $this->redisClient->publish($this->channelKey, $record->formatted); } /** * @inheritDoc */ protected function getDefaultFormatter(): FormatterInterface { return new LineFormatter(); } }
Upload File
Create Folder