PhpMigration\Logger::interpolate PHP Method

interpolate() protected method

Example implementation in http://www.php-fig.org/psr/psr-3/
protected interpolate ( $message, array $context = [] )
$context array
    protected function interpolate($message, array $context = [])
    {
        $replace = [];
        foreach ($context as $key => $val) {
            if ($key == 'exception') {
                $val = $val->getMessage();
            }
            $replace['{' . $key . '}'] = $val;
        }
        return strtr($message, $replace);
    }