/** * Logging as `CRITICAL` * * @param string $message * @param array $placeholders placeholders for replacement */ public static function crit($message, array $placeholders = []) { Log::log(Log::CRITICAL, $message, $placeholders); }
/** * @param \Exception $exception * @param int $level * @param Response $response */ public static function display(\Exception $exception, $level = Log::CRITICAL, Response $response = null) { // append log if (static::$logged) { Log::log($level, BaseException::convertExceptionToString($exception)); } // display Whoops if (ROCK_DEBUG === true) { static::debuger($response)->handleException($exception); return; } // else display fatal static::displayFatal($response); }