27 #define TRACE_TO_FILE(msg) \ 28 if (g_EnableDebugTraceFile && !g_DebugTraceFile.IsEmpty()) \ 30 wxTextFile f(g_DebugTraceFile); \ 31 if ((f.Exists() && f.Open()) || (!f.Exists() && f.Create())) \ 34 bool exp = f.Write() && f.Close(); \ 39 #define TRACE_THIS_TO_FILE(msg) \ 40 if (!g_DebugTraceFile.IsEmpty()) \ 42 wxTextFile f(g_DebugTraceFile); \ 43 if ((f.Exists() && f.Open()) || (!f.Exists() && f.Create())) \ 46 bool exp = f.Write() && f.Close() \ 83 #if CC_PROCESS_LOG_EVENT_TO_PARENT 100 #if CC_PROCESS_LOG_EVENT_TO_PARENT 117 #if CC_PROCESS_LOG_EVENT_TO_PARENT
void Log(const wxString &msg)
static std::unique_ptr< CCLogger > s_Inst
static bool IsAppShuttingDown()
void AddToken(const wxString &msg)
void DebugLog(const wxString &msg)
void wxPostEvent(wxEvtHandler *dest, const wxEvent &event)
void Init(wxEvtHandler *parent, int logId, int debugLogId, int addTokenId=-1)
bool g_EnableDebugTrace
Toggles tracing into file.
bool g_EnableDebugTraceFile