Lines Matching refs:g_log_file
145 FileHandle g_log_file = nullptr; variable
309 if (g_log_file) in InitializeLogFileHandle()
324 g_log_file = CreateFile(g_log_file_name->c_str(), FILE_APPEND_DATA, in InitializeLogFileHandle()
327 if (g_log_file == INVALID_HANDLE_VALUE || g_log_file == nullptr) { in InitializeLogFileHandle()
347 g_log_file = CreateFile(g_log_file_name->c_str(), FILE_APPEND_DATA, in InitializeLogFileHandle()
350 if (g_log_file == INVALID_HANDLE_VALUE || g_log_file == nullptr) { in InitializeLogFileHandle()
351 g_log_file = nullptr; in InitializeLogFileHandle()
356 g_log_file = fopen(g_log_file_name->c_str(), "a"); in InitializeLogFileHandle()
357 if (g_log_file == nullptr) in InitializeLogFileHandle()
378 if (!g_log_file) in CloseLogFileUnlocked()
381 CloseFile(g_log_file); in CloseLogFileUnlocked()
382 g_log_file = nullptr; in CloseLogFileUnlocked()
814 WriteFile(g_log_file, in ~LogMessage()
821 str_newline.data(), str_newline.size(), 1, g_log_file)); in ~LogMessage()
822 fflush(g_log_file); in ~LogMessage()