log(LogLevel::DEBUG, var_export($variable, true)); } /** * Interpolates context values into the message placeholders. * * @access protected * @param string $message * @param array $context * @return string */ protected function interpolate($message, array $context = array()) { // build a replacement array with braces around the context keys $replace = array(); foreach ($context as $key => $val) { $replace['{' . $key . '}'] = $val; } // interpolate replacement values into the message and return return strtr($message, $replace); } }