original_string: public function log($level, $message, array $context = [])
      {
          $message = $this->_format($message, $context);
          $output = date('Y-m-d H:i:s') . ' ' . ucfirst($level) . ': ' . $message;
  
          return (bool)$this->_output->write(sprintf('<%s>%s</%s>', $level, $output, $level));
      }
code: public function log($level, $message, array $context = [])
      {
          $message = $this->_format($message, $context);
          $output = date('Y-m-d H:i:s') . ' ' . ucfirst($level) . ': ' . $message;
  
          return (bool)$this->_output->write(sprintf('<%s>%s</%s>', $level, $output, $level));
      }
code_tokens: public function log ( $ level , $ message , array $ context = [ ] ) { $ message = $ this -> _format ( $ message , $ context ) ; $ output = date ( 'Y-m-d H:i:s' ) . ' ' . ucfirst ( $ level ) . ': ' . $ message ; return ( bool ) $ this -> _output -> write ( sprintf ( '<%s>%s</%s>' , $ level , $ output , $ level ) ) ; }
docstring: Implements writing to console.
  
  @param string $level The severity level of log you are making.
  @param string $message The message you want to log.
  @param array $context Additional information about the logged message
  @return bool success of write.
docstring_tokens: Implements writing to console .