public function log ($level, $message, array $context = [])
  {
    $levelName = isset(self::$LEVELS[$level]) ? self::$LEVELS[$level] : $level;
    $message   = Debug::interpolate ($message, $context);
    $this->write ("<#log><#i><span class=__alert>$levelName</span> $message</#i></#log>");
  }
public function log ($level, $message, array $context = [])
  {
    $levelName = isset(self::$LEVELS[$level]) ? self::$LEVELS[$level] : $level;
    $message   = Debug::interpolate ($message, $context);
    $this->write ("<#log><#i><span class=__alert>$levelName</span> $message</#i></#log>");
  }
public function log ( $ level , $ message , array $ context = [ ] ) { $ levelName = isset ( self :: $ LEVELS [ $ level ] ) ? self :: $ LEVELS [ $ level ] : $ level ; $ message = Debug :: interpolate ( $ message , $ context ) ; $ this -> write ( "<#log><#i><span class=__alert>$levelName</span> $message</#i></#log>" ) ; }
PSR-3-compliant logging method.

@param mixed  $level
@param string $message
@param array  $context

@return null
PSR - 3 - compliant logging method .