Lines Matching refs:g_log_file
116 FileHandle g_log_file = nullptr; variable
275 if (g_log_file) in InitializeLogFileHandle()
290 g_log_file = CreateFile(g_log_file_name->c_str(), FILE_APPEND_DATA, in InitializeLogFileHandle()
293 if (g_log_file == INVALID_HANDLE_VALUE || g_log_file == nullptr) { in InitializeLogFileHandle()
313 g_log_file = CreateFile(g_log_file_name->c_str(), FILE_APPEND_DATA, in InitializeLogFileHandle()
316 if (g_log_file == INVALID_HANDLE_VALUE || g_log_file == nullptr) { in InitializeLogFileHandle()
317 g_log_file = nullptr; in InitializeLogFileHandle()
322 g_log_file = fopen(g_log_file_name->c_str(), "a"); in InitializeLogFileHandle()
323 if (g_log_file == nullptr) in InitializeLogFileHandle()
340 if (!g_log_file) in CloseLogFileUnlocked()
343 CloseFile(g_log_file); in CloseLogFileUnlocked()
344 g_log_file = nullptr; in CloseLogFileUnlocked()
731 WriteFile(g_log_file, in ~LogMessage()
738 str_newline.data(), str_newline.size(), 1, g_log_file)); in ~LogMessage()
739 fflush(g_log_file); in ~LogMessage()