-
Notifications
You must be signed in to change notification settings - Fork 0
/
WI_LogUtility.h
54 lines (41 loc) · 1.79 KB
/
WI_LogUtility.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#pragma once
#ifndef __WI_LOG__
#define __WI_LOG__
/////////////////////////////////////////////////////////////////////////
// ----------------------------------------------------------------------
// the kinds of files the log can be saved as
#define WI_HTML_LOG_FILE 10800
#define WI_XML_LOG_FILE 10801
#define WI_TXT_LOG_FILE 10802
/////////////////////////////////////////////////////////////////////////
// ----------------------------------------------------------------------
// initialize the log file
bool WI_InitLog ( WI_String szLogName = WI_String ( "Wi_Log" ), WI_Int iLogType = WI_TXT_LOG_FILE );
/////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------
// will append a log file
bool WI_AppendToLog ( WI_String szEvent, WI_String szText );
/////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------
// will GetAsChar the current log and return it as a string
WI_String WI_GetLog ( );
/////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------
// GetAsChars the name of the log file
WI_String WI_GetLogFileName ( );
/////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------
// quick macros for common log entries
/////////////////////////////////////////////////////////////////////////
// -------------------------------------------------------------------
// fatal error
//#if defined _MSC_VER
//
// #define _WI_ERR_MSG_DE sprintf();
//
//#elif
// #define _WI_ERR_MSG_DE
//
//#endif
#pragma message ( " Widow logging system complete..." )
#endif