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()
        ]);
    }
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()
        ]);
    }
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 ( ) ] ) ; }
Guarda un log del error
@param \Monolog\Logger $logger
Guarda un log del error