src/Viserio/Bridge/Monolog/Formatter/ConsoleFormatter.php
public function format(array $record)
    {
        $record     = $this->replacePlaceHolder($record);
        $levelColor = self::$levelColorMap[$record['level']];

        if ($this->options['multiline']) {
            $context = $extra = "\n";
        } else {
            $context = $extra = ' ';
        }

        $context .= $this->dumpData($record['context']);
        $extra   .= $this->dumpData($record['extra']);

        return \strtr($this->options['format'], [
            '%datetime%'   => $record['datetime']->format($this->options['date_format']),
            '%start_tag%'  => \sprintf('<%s>', $levelColor),
            '%level_name%' => \sprintf('%-9s', $record['level_name']),
            '%end_tag%'    => '</>',
            '%channel%'    => $record['channel'],
            '%message%'    => $this->replacePlaceHolder($record)['message'],
            '%context%'    => $context,
            '%extra%'      => $extra,
        ]);
    }
public function format(array $record)
    {
        $record     = $this->replacePlaceHolder($record);
        $levelColor = self::$levelColorMap[$record['level']];

        if ($this->options['multiline']) {
            $context = $extra = "\n";
        } else {
            $context = $extra = ' ';
        }

        $context .= $this->dumpData($record['context']);
        $extra   .= $this->dumpData($record['extra']);

        return \strtr($this->options['format'], [
            '%datetime%'   => $record['datetime']->format($this->options['date_format']),
            '%start_tag%'  => \sprintf('<%s>', $levelColor),
            '%level_name%' => \sprintf('%-9s', $record['level_name']),
            '%end_tag%'    => '</>',
            '%channel%'    => $record['channel'],
            '%message%'    => $this->replacePlaceHolder($record)['message'],
            '%context%'    => $context,
            '%extra%'      => $extra,
        ]);
    }
{@inheritdoc}