public static function shutdown() { $error = error_get_last(); if ($error['message']) { $message = new message($error['message'], self::$levels['fatal']); $message->setFile($error['file']); $message->setLine($error['line']); } else { $message = new message("Exit", self::$levels['notice']); } self::_log($message); }