rename Sentry to TSentry

windows filenames arent case-sensitive so it doesnt know which
sentry.h we mean.
This commit is contained in:
Lion Kortlepel
2021-08-10 10:43:51 +02:00
committed by Lion
parent b3a8b1a682
commit 969cd93358
5 changed files with 4 additions and 4 deletions

28
include/TSentry.h Normal file
View File

@@ -0,0 +1,28 @@
#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 PrintWelcome();
void Log(sentry_level_t level, const std::string& logger, const std::string& text);
void AddExtra(const std::string& key, const sentry_value_t& value);
void AddExtra(const std::string& key, const std::string& value);
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);
// cleared when Logged
void SetTransaction(const std::string& id);
private:
bool mValid { true };
};
#endif // SENTRY_H