/var/www/vhosts/ihelp.ro/httpdocs/vendor/monolog/monolog/src/Monolog/Formatter
NameSizeModeActions
ChromePHPFormatter.php22650644editdlrm
ElasticaFormatter.php20960644editdlrm
ElasticsearchFormatter.php19250644editdlrm
FlowdockFormatter.php25350644editdlrm
FluentdFormatter.php23450644editdlrm
FormatterInterface.php8700644editdlrm
GelfMessageFormatter.php47320644editdlrm
GoogleCloudLoggingFormatter.php11850644editdlrm
HtmlFormatter.php46240644editdlrm
JsonFormatter.php59910644editdlrm
LineFormatter.php77180644editdlrm
LogglyFormatter.php12800644editdlrm
LogmaticFormatter.php14990644editdlrm
LogstashFormatter.php35150644editdlrm
MongoDBFormatter.php49560644editdlrm
NormalizerFormatter.php87880644editdlrm
ScalarFormatter.php11360644editdlrm
SyslogFormatter.php19250644editdlrm
WildfireFormatter.php40630644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php (1280B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Formatter; use Monolog\LogRecord; /** * 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() */ protected function normalizeRecord(LogRecord $record): array { $recordData = parent::normalizeRecord($record); $recordData["timestamp"] = $record->datetime->format("Y-m-d\TH:i:s.uO"); unset($recordData["datetime"]); return $recordData; } }