Lines Matching defs:context
255 * @param array $context
257 public function fatal($error, array $context = array())
272 $this->logMessage('critical', $error, $context);
280 * @param array $context
282 public function success($string, array $context = array())
284 $this->logMessage('success', $string, $context);
290 * @param array $context
292 protected function logMessage($level, $message, array $context = array())
300 $message = $this->interpolate($message, $context);
311 * Interpolates context values into the message placeholders.
314 * @param array $context
317 protected function interpolate($message, array $context = array())
319 // build a replacement array with braces around the context keys
321 foreach ($context as $key => $val) {