X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/monolog/monolog/src/Monolog
home
/
prisjneg
/
public_html
/
vendor
/
monolog
/
monolog
/
src
/
Monolog
/
📁
..
📁
Attribute
📄
DateTimeImmutable.php
(583 B)
📄
ErrorHandler.php
(10.02 KB)
📁
Formatter
📁
Handler
📄
JsonSerializableDateTimeImmutable.php
(1.22 KB)
📄
Level.php
(5.21 KB)
📄
LogRecord.php
(3.38 KB)
📄
Logger.php
(22.55 KB)
📁
Processor
📄
Registry.php
(3.93 KB)
📄
ResettableInterface.php
(974 B)
📄
SignalHandler.php
(3.81 KB)
📁
Test
📄
Utils.php
(8.74 KB)
Editing: JsonSerializableDateTimeImmutable.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; use DateTimeZone; /** * Overrides default json encoding of date time objects * * @author Menno Holtkamp * @author Jordi Boggiano <j.boggiano@seld.be> */ class JsonSerializableDateTimeImmutable 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(); } }
Upload File
Create Folder