/** * @param $message * @return bool */ public function log($message) { if (null !== ($logger = $this->handler->getLogger())) { return $logger->error($message, ['error' => $this->getThrowable()->getMessage(), 'file' => $this->getThrowable()->getFile(), 'line' => $this->getThrowable()->getLine(), 'code' => $this->getStatusCode(), 'get' => $_GET, 'post' => $_POST]); } return false; }