OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
monolog
/
monolog
/
src
/
Monolog
/
Handler
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
08/12/2024 10:35:58 AM
rwxr-xr-x
π
AbstractHandler.php
2.71 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
AbstractProcessingHandler.php
1.52 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
AbstractSyslogHandler.php
3.24 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
AmqpHandler.php
5.12 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
BrowserConsoleHandler.php
9.3 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
BufferHandler.php
4.6 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
ChromePHPHandler.php
5.21 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
CouchDBHandler.php
2.64 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
CubeHandler.php
5.48 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
Curl
-
08/12/2024 10:36:32 AM
rwxr-xr-x
π
DeduplicationHandler.php
6.42 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
DoctrineCouchDBHandler.php
1.17 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
DynamoDbHandler.php
1.97 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
ElasticaHandler.php
3.72 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
ElasticsearchHandler.php
7.01 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
ErrorLogHandler.php
2.71 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
FallbackGroupHandler.php
1.75 KB
08/12/2024 10:35:56 AM
rw-r--r--
π
FilterHandler.php
7.12 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
FingersCrossed
-
08/12/2024 10:36:32 AM
rwxr-xr-x
π
FingersCrossedHandler.php
8.21 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
FirePHPHandler.php
5.2 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
FleepHookHandler.php
3.57 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
FlowdockHandler.php
3.52 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
FormattableHandlerInterface.php
791 bytes
08/12/2024 10:35:57 AM
rw-r--r--
π
FormattableHandlerTrait.php
1.29 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
GelfHandler.php
1.48 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
GroupHandler.php
3.32 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
Handler.php
1.27 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
HandlerInterface.php
2.79 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
HandlerWrapper.php
3.41 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
IFTTTHandler.php
2.29 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
InsightOpsHandler.php
2.11 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
LogEntriesHandler.php
1.93 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
LogglyHandler.php
4.17 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
LogmaticHandler.php
2.67 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
MailHandler.php
2.28 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
MandrillHandler.php
2.56 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
MissingExtensionException.php
494 bytes
08/12/2024 10:35:57 AM
rw-r--r--
π
MongoDBHandler.php
2.39 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
NativeMailerHandler.php
5.05 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
NewRelicHandler.php
5.88 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
NoopHandler.php
950 bytes
08/12/2024 10:35:57 AM
rw-r--r--
π
NullHandler.php
1.35 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
OverflowHandler.php
4.35 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
PHPConsoleHandler.php
12.22 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
ProcessHandler.php
5.24 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
ProcessableHandlerInterface.php
1.2 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
ProcessableHandlerTrait.php
1.65 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
PsrHandler.php
2.5 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
PushoverHandler.php
8.16 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
RedisHandler.php
2.76 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
RedisPubSubHandler.php
1.71 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
RollbarHandler.php
3.65 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
RotatingFileHandler.php
7.02 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
SamplingHandler.php
3.94 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
SendGridHandler.php
2.97 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
Slack
-
08/12/2024 10:36:32 AM
rwxr-xr-x
π
SlackHandler.php
7.25 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
SlackWebhookHandler.php
3.92 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
SocketHandler.php
12.27 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
SqsHandler.php
1.77 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
StreamHandler.php
6.83 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
SymfonyMailerHandler.php
3.55 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
SyslogHandler.php
1.71 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
SyslogUdp
-
08/12/2024 10:36:32 AM
rwxr-xr-x
π
SyslogUdpHandler.php
4.78 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
TelegramBotHandler.php
9.51 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
TestHandler.php
6.51 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
WebRequestRecognizerTrait.php
527 bytes
08/12/2024 10:35:57 AM
rw-r--r--
π
WhatFailureGroupHandler.php
1.94 KB
08/12/2024 10:35:57 AM
rw-r--r--
π
ZendMonitorHandler.php
2.87 KB
08/12/2024 10:35:57 AM
rw-r--r--
Editing: RedisPubSubHandler.php
Close
<?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(); } }