/home/techb158/exp.abdallabala.com/vendor/monolog/monolog/src/Monolog/Formatter
NameSizeModeActions
ChromePHPFormatter.php20430644editdlrm
ElasticaFormatter.php18370644editdlrm
FlowdockFormatter.php25480644editdlrm
FluentdFormatter.php21890644editdlrm
FormatterInterface.php7870644editdlrm
GelfMessageFormatter.php44080644editdlrm
HtmlFormatter.php46200644editdlrm
JsonFormatter.php52830644editdlrm
LineFormatter.php55730644editdlrm
LogglyFormatter.php13220644editdlrm
LogstashFormatter.php53070644editdlrm
MongoDBFormatter.php32980644editdlrm
NormalizerFormatter.php51870644editdlrm
ScalarFormatter.php10400644editdlrm
WildfireFormatter.php32540644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php (1040B)
* * 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) { foreach ($record as $key => $value) { $record[$key] = $this->normalizeValue($value); } return $record; } /** * @param mixed $value * @return mixed */ protected function normalizeValue($value) { $normalized = $this->normalize($value); if (is_array($normalized) || is_object($normalized)) { return $this->toJson($normalized, true); } return $normalized; } }