Added check for a new version of the application.
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
// wCenterWindow
|
||||
// logger.h
|
||||
// wLogger v3.2 (Edited version from RBTray project [https://github.com/benbuck/rbtray])
|
||||
// wLogger v3.3 (Edited version from RBTray project [https://github.com/benbuck/rbtray])
|
||||
//
|
||||
// Usage: LOG_TO_FILE(L"%s(%d): Log message", TEXT(__FUNCTION__), __LINE__);
|
||||
//
|
||||
#pragma once
|
||||
//#include "globals.h"
|
||||
//#include "wCenterWindow.h"
|
||||
|
||||
#define LOG_TO_FILE(fmt, ...) StringCchPrintfW(debugBuffer, DBUFLEN, fmt, ##__VA_ARGS__); logfile << GetTimeStamp() << debugBuffer << std::endl;
|
||||
#define LOG_TO_FILE(fmt, ...) do {\
|
||||
EnterCriticalSection(&cs); \
|
||||
StringCchPrintfW(debugBuffer, DBUFLEN, fmt, ##__VA_ARGS__); \
|
||||
logfile << GetTimeStamp() << debugBuffer << std::endl; \
|
||||
LeaveCriticalSection(&cs); \
|
||||
} while (0);
|
||||
|
||||
wchar_t* GetTimeStamp();
|
||||
void OpenLogFile(const wchar_t[], const wchar_t[]);
|
||||
|
||||
Reference in New Issue
Block a user