![]() |
Rise
The Vieneo Province
|
#include <Logger.h>
Classes | |
| struct | CrashState |
Public Types | |
| enum | Level { None = -1 , Info = 0 , Warn = 1 , Debug = 2 , Error = 3 , Fatal = 4 } |
Public Member Functions | |
| void | SendTraceFile (bool waitForDelivery=true) const |
| void | Log (const char *msg, Level level=Info, int errorCode=0) |
| void | AddToCallStack (const char *msg) |
| void | SetNetworkingPointer (Networking *prmNetworking) |
| void | SendPendingCrashReports () |
| void | ConfirmTraceDelivery (std::uint32_t receipt) |
| void | RecordCrash (const char *reason, unsigned long code=0, struct _EXCEPTION_POINTERS *exception=nullptr) noexcept |
| Logger () | |
| ~Logger () | |
Static Public Member Functions | |
| static long __stdcall | HandleNativeException (struct _EXCEPTION_POINTERS *exception) |
Public Attributes | |
| std::string | lastError |
| Level | lastLevel = Level::None |
| int | lastErrorCode = 0 |
Private Member Functions | |
| std::uint32_t | QueueTraceFile (bool requestReceipt) const |
Static Private Member Functions | |
| static void | RemoveOldFiles (const wchar_t *searchkey, int maxDays) |
Private Attributes | |
| std::unique_ptr< CrashState > | crash |
| Networking * | networking = nullptr |
| char | fileName [99] = { 0 } |
| CrashBreadcrumbs | breadcrumbs |
| enum Logger::Level |
| Logger::Logger | ( | ) |
| Logger::~Logger | ( | ) |
| void Logger::AddToCallStack | ( | const char * | msg | ) |
| void Logger::ConfirmTraceDelivery | ( | std::uint32_t | receipt | ) |
Definition at line 265 of file Logger.cpp.
|
static |
Definition at line 88 of file Logger.cpp.
|
private |
Definition at line 212 of file Logger.cpp.
|
noexcept |
| void Logger::SendPendingCrashReports | ( | ) |
Definition at line 221 of file Logger.cpp.
| void Logger::SendTraceFile | ( | bool | waitForDelivery = true | ) | const |
Definition at line 207 of file Logger.cpp.
| void Logger::SetNetworkingPointer | ( | Networking * | prmNetworking | ) |
|
private |
|
private |
| Level Logger::lastLevel = Level::None |
|
private |