public static function exception(\Exception $exception, bool $fire = true) : bool
{
self::log(['type' => self::EXCEPTION, 'text' => $exception->getMessage() . ' [' . $exception->getCode() . ']', 'file' => $exception->getFile(), 'line' => $exception->getLine(), 'trace' => $exception->getTrace(), 'previous' => self::getAllPreviousExceptions($exception)], $fire);
}