src/Log/LogFormatter.php
protected function applyContext($message, array $context = array())
    {
        foreach ($context as $key => $value) {
            $key = trim($key, "{}");
            if ($key != 'exception') {
                $message = $this->replaceContext($message, $key, $value);
            }
        }

        return $message;
    }
protected function applyContext($message, array $context = array())
    {
        foreach ($context as $key => $value) {
            $key = trim($key, "{}");
            if ($key != 'exception') {
                $message = $this->replaceContext($message, $key, $value);
            }
        }

        return $message;
    }
protected function applyContext ( $ message , array $ context = array ( ) ) { foreach ( $ context as $ key => $ value ) { $ key = trim ( $ key , "{}" ) ; if ( $ key != 'exception' ) { $ message = $ this -> replaceContext ( $ message , $ key , $ value ) ; } } return $ message ; }
Apply context into log message.

@param string $message
@param array  $context [optional]

@return string
Apply context into log message .