OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
monolog
/
monolog
/
src
/
Monolog
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:34:19 AM
rwxr-xr-x
📁
Attribute
-
08/12/2024 10:35:56 AM
rwxr-xr-x
📄
DateTimeImmutable.php
1.25 KB
08/12/2024 10:34:19 AM
rw-r--r--
📄
ErrorHandler.php
10.28 KB
08/12/2024 10:34:19 AM
rw-r--r--
📁
Formatter
-
08/12/2024 10:35:56 AM
rwxr-xr-x
📁
Handler
-
08/12/2024 10:36:32 AM
rwxr-xr-x
📄
Level.php
5.56 KB
08/12/2024 10:34:19 AM
rw-r--r--
📄
LogRecord.php
3.5 KB
08/12/2024 10:34:19 AM
rw-r--r--
📄
Logger.php
23.21 KB
08/12/2024 10:34:19 AM
rw-r--r--
📁
Processor
-
08/12/2024 10:35:58 AM
rwxr-xr-x
📄
Registry.php
4.06 KB
08/12/2024 10:34:19 AM
rw-r--r--
📄
ResettableInterface.php
1005 bytes
08/12/2024 10:34:19 AM
rw-r--r--
📄
SignalHandler.php
3.92 KB
08/12/2024 10:34:19 AM
rw-r--r--
📁
Test
-
08/12/2024 10:35:58 AM
rwxr-xr-x
📄
Utils.php
9.44 KB
08/12/2024 10:34:19 AM
rw-r--r--
Editing: DateTimeImmutable.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; use DateTimeZone; /** * Overrides default json encoding of date time objects * * @author Menno Holtkamp * @author Jordi Boggiano <j.boggiano@seld.be> */ class DateTimeImmutable extends \DateTimeImmutable implements \JsonSerializable { private bool $useMicroseconds; public function __construct(bool $useMicroseconds, ?DateTimeZone $timezone = null) { $this->useMicroseconds = $useMicroseconds; // if you like to use a custom time to pass to Logger::addRecord directly, // call modify() or setTimestamp() on this instance to change the date after creating it parent::__construct('now', $timezone); } public function jsonSerialize(): string { if ($this->useMicroseconds) { return $this->format('Y-m-d\TH:i:s.uP'); } return $this->format('Y-m-d\TH:i:sP'); } public function __toString(): string { return $this->jsonSerialize(); } }