/var/www/cobraambalaj/vendor/monolog/monolog/src/Monolog/Formatter
NameSizeModeActions
ChromePHPFormatter.php20850644editdlrm
ElasticaFormatter.php19420644editdlrm
ElasticsearchFormatter.php18390644editdlrm
FlowdockFormatter.php24470644editdlrm
FluentdFormatter.php22240644editdlrm
FormatterInterface.php8120644editdlrm
GelfMessageFormatter.php48440644editdlrm
HtmlFormatter.php45400644editdlrm
JsonFormatter.php51040644editdlrm
LineFormatter.php60030644editdlrm
LogglyFormatter.php13050644editdlrm
LogmaticFormatter.php14840644editdlrm
LogstashFormatter.php33930644editdlrm
MongoDBFormatter.php45670644editdlrm
NormalizerFormatter.php75550644editdlrm
ScalarFormatter.php10610644editdlrm
WildfireFormatter.php37250644editdlrm
Edit: /var/www/cobraambalaj/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php (1061B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Formatter; /** * Formats data into an associative array of scalar values. * Objects and arrays will be JSON encoded. * * @author Andrew Lawson */ class ScalarFormatter extends NormalizerFormatter { /** * {@inheritdoc} */ public function format(array $record): array { foreach ($record as $key => $value) { $record[$key] = $this->normalizeValue($value); } return $record; } /** * @param mixed $value * @return string|int|bool|null */ protected function normalizeValue($value) { $normalized = $this->normalize($value); if (is_array($normalized)) { return $this->toJson($normalized, true); } return $normalized; } }