载入中...
搜索中...
未找到
CrashLog.cpp 文件参考
#include "common/CrashLog.h"
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <mutex>
#include <string>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 

函数

void eve::initSystemLogging (const std::string &logDir={})
 Opens (append) the crash/error log file and records a session marker.
 
void eve::recordLogEvent (const std::string &level, const std::string &message)
 Appends a timestamped event line to the crash/error log.
 
void eve::recordCrashEvent (const std::string &report)
 Records a crash report, safe to call from a crash/exception handler.
 
std::string eve::crashLogPath ()
 Path of the open crash/error log file.
 
void eve::recordSessionStart ()
 Appends a session-start marker.
 
void eve::recordSessionEnd (int exitCode)
 Appends the session-end marker carrying the process exit code.