-
Notifications
You must be signed in to change notification settings - Fork 0
/
REventLog_Ex02.pb
53 lines (41 loc) · 2.07 KB
/
REventLog_Ex02.pb
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
;================================
; Project REventLog
; Title Write EventLog
; Author Progi1984
; Date 11/10/2007
; Notes
;================================
Global EventLogName.s = "REventLog"
Global DLLPath.s = GetCurrentDirectory() + "REventLogTest.dll"
REventLog_Create(2)
Debug "===== Log ====="
Debug REventLog_CreateLog(2, EventLogName)
Debug "===== Source <Application0> ====="
Debug REventLog_CreateSource(2, "Application0")
Debug REventLog_SetDLLCategory(2, "Application0", 5, DLLPath)
Debug REventLog_SetDLLEventMessage(2, "Application0", DLLPath)
Debug "===== Source <Application1> ====="
Debug REventLog_CreateSource(2, "Application1")
Debug REventLog_SetDLLCategory(2, "Application1", 3, DLLPath)
Debug REventLog_SetDLLEventMessage(2, "Application1", DLLPath)
Debug "===== Source <Application2> ====="
Debug REventLog_CreateSource(2, "Application2")
Debug REventLog_SetDLLCategory(2, "Application2", 1, DLLPath)
Debug REventLog_SetDLLEventMessage(2, "Application2", DLLPath)
Debug "===== Reports ====="
Debug REventLog_Report(2, "Application0", 1, #EVENTLOG_SUCCESS, 1000, "")
Debug REventLog_Report(2, "Application0", 2, #EVENTLOG_ERROR_TYPE, 1000, "")
Debug REventLog_Report(2, "Application0", 3, #EVENTLOG_WARNING_TYPE, 1000, "")
Debug REventLog_Report(2, "Application0", 4, #EVENTLOG_INFORMATION_TYPE, 1000, "")
Debug REventLog_Report(2, "Application0", 5, #EVENTLOG_SUCCESS, 1000, "")
Debug REventLog_Report(2, "Application1", 1, #EVENTLOG_ERROR_TYPE, 1001, "AZERTY&é")
Debug REventLog_Report(2, "Application1", 2, #EVENTLOG_WARNING_TYPE, 1001, "ùô")
Debug REventLog_Report(2, "Application1", 3, #EVENTLOG_INFORMATION_TYPE, 1001, "Yop")
Debug REventLog_Report(2, "Application2", 1, #EVENTLOG_INFORMATION_TYPE, 1002, "Test Message"+Chr(13)+Chr(10)+" Following by what you want=>")
; REvent
; Source : Core
; Category : Cat100
; Category : Cat020
; Category : Cat003
; Source : Plugins
; Source : Others