/home/techb158/ileadtechnology.com/vendor/monolog/monolog/src/Monolog/Formatter
NameSizeModeActions
ChromePHPFormatter.php21440644editdlrm
ElasticaFormatter.php20720644editdlrm
ElasticsearchFormatter.php18610644editdlrm
FlowdockFormatter.php26130644editdlrm
FluentdFormatter.php22240644editdlrm
FormatterInterface.php9580644editdlrm
GelfMessageFormatter.php56170644editdlrm
GoogleCloudLoggingFormatter.php11300644editdlrm
HtmlFormatter.php45130644editdlrm
JsonFormatter.php61280644editdlrm
LineFormatter.php76900644editdlrm
LogglyFormatter.php13050644editdlrm
LogmaticFormatter.php14840644editdlrm
LogstashFormatter.php34020644editdlrm
MongoDBFormatter.php49720644editdlrm
NormalizerFormatter.php82390644editdlrm
ScalarFormatter.php11600644editdlrm
WildfireFormatter.php39370644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php (1305B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Formatter; /** * Encodes message information into JSON in a format compatible with Loggly. * * @author Adam Pancutt */ class LogglyFormatter extends JsonFormatter { /** * Overrides the default batch mode to new lines for compatibility with the * Loggly bulk API. */ public function __construct(int $batchMode = self::BATCH_MODE_NEWLINES, bool $appendNewline = false) { parent::__construct($batchMode, $appendNewline); } /** * Appends the 'timestamp' parameter for indexing by Loggly. * * @see https://www.loggly.com/docs/automated-parsing/#json * @see \Monolog\Formatter\JsonFormatter::format() */ public function format(array $record): string { if (isset($record["datetime"]) && ($record["datetime"] instanceof \DateTimeInterface)) { $record["timestamp"] = $record["datetime"]->format("Y-m-d\TH:i:s.uO"); unset($record["datetime"]); } return parent::format($record); } }