summaryrefslogtreecommitdiff
path: root/windows/keybuddy2/src/logger.h
blob: 86adb02d7e01ca5c63c915ce6840dea493ab247a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _KeyBuddy2_logger_h_
#define _KeyBuddy2_logger_h_

#include "includes.h"

// Logging functions
// if DEBUG is enabled, these functions display debug messages in the GUI and into an html file

#ifdef DEBUG
	#define STARTLOG(FNAME) startLog(FNAME)
	#define LOGG(ARG) logg(ARG)
	#define LOGGNL loggnl()
	#define ENDLOG endLog()
	
	void startLog(const char* fname);
	void logg(const char* txt);
	void logg(WString txt);
	void logg(int num);
	void logg(double num);
	void logg(wchar uni);
	void loggnl();
	void endLog();	
#else
	#define STARTLOG(FNAME)  
	#define LOGG(ARG)
	#define LOGGNL
	#define ENDLOG  
#endif

#endif