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: ErrorLogHandler.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\Utils; use Monolog\LogRecord; /** * Stores to PHP error_log() handler. * * @author Elan Ruusamรคe <glen@delfi.ee> */ class ErrorLogHandler extends AbstractProcessingHandler { public const OPERATING_SYSTEM = 0; public const SAPI = 4; protected int $messageType; protected bool $expandNewlines; /** * @param int $messageType Says where the error should go. * @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries * * @throws \InvalidArgumentException If an unsupported message type is set */ public function __construct(int $messageType = self::OPERATING_SYSTEM, int|string|Level $level = Level::Debug, bool $bubble = true, bool $expandNewlines = false) { parent::__construct($level, $bubble); if (false === \in_array($messageType, self::getAvailableTypes(), true)) { $message = sprintf('The given message type "%s" is not supported', print_r($messageType, true)); throw new \InvalidArgumentException($message); } $this->messageType = $messageType; $this->expandNewlines = $expandNewlines; } /** * @return int[] With all available types */ public static function getAvailableTypes(): array { return [ self::OPERATING_SYSTEM, self::SAPI, ]; } /** * @inheritDoc */ protected function getDefaultFormatter(): FormatterInterface { return new LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%'); } /** * @inheritDoc */ protected function write(LogRecord $record): void { if (!$this->expandNewlines) { error_log((string) $record->formatted, $this->messageType); return; } $lines = preg_split('{[\r\n]+}', (string) $record->formatted); if ($lines === false) { $pcreErrorCode = preg_last_error(); throw new \RuntimeException('Failed to preg_split formatted string: ' . $pcreErrorCode . ' / '. Utils::pcreLastErrorMessage($pcreErrorCode)); } foreach ($lines as $line) { error_log($line, $this->messageType); } } }