original_string: public function log( \Monolog\Logger $logger) {
          $reflection = new \ReflectionClass($this);
          $logger->error($this->getMessage(), [
              'type' => $reflection->getShortName(),
              'code' => $this->getCode(),
              'line' => $this->getLine(),
              'file' => $this->getFile(),
              'trace' => $this->getTrace(),
              'context' => $this->getContext()
          ]);
      }
code: public function log( \Monolog\Logger $logger) {
          $reflection = new \ReflectionClass($this);
          $logger->error($this->getMessage(), [
              'type' => $reflection->getShortName(),
              'code' => $this->getCode(),
              'line' => $this->getLine(),
              'file' => $this->getFile(),
              'trace' => $this->getTrace(),
              'context' => $this->getContext()
          ]);
      }
code_tokens: public function log ( \ Monolog \ Logger $ logger ) { $ reflection = new \ ReflectionClass ( $ this ) ; $ logger -> error ( $ this -> getMessage ( ) , [ 'type' => $ reflection -> getShortName ( ) , 'code' => $ this -> getCode ( ) , 'line' => $ this -> getLine ( ) , 'file' => $ this -> getFile ( ) , 'trace' => $ this -> getTrace ( ) , 'context' => $ this -> getContext ( ) ] ) ; }
docstring: Guarda un log del error
  @param \Monolog\Logger $logger
docstring_tokens: Guarda un log del error