Files
BeamMP-Server/include/Sentry.h
Lion Kortlepel f550d0bba9 add todo
2021-09-08 19:55:03 +03:00

24 lines
587 B
C++

#ifndef SENTRY_H
#define SENTRY_H
#include <sentry.h>
#include <string>
// TODO possibly use attach_stacktrace
// singleton, dont make this twice
class TSentry final {
public:
TSentry(const std::string& SentryUrl);
~TSentry();
void Log(sentry_level_t level, const std::string& logger, const std::string& text);
void LogException(const std::exception& e, const std::string& file, const std::string& line);
void AddErrorBreadcrumb(const std::string& msg, const std::string& file, const std::string& line);
private:
bool mValid { true };
};
#endif // SENTRY_H