-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathModule_Log.vb
More file actions
35 lines (28 loc) · 826 Bytes
/
Module_Log.vb
File metadata and controls
35 lines (28 loc) · 826 Bytes
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
Imports System.IO
Module Module_Log
Public Log As Boolean
Public Debug As Boolean
Public Sub Logit(ByVal LogData As String)
If Log = True Then
Try
Using w As StreamWriter = File.AppendText("KeyzPal_activity.log")
w.WriteLine(LogData)
w.Close()
End Using
Catch ex As Exception
End Try
Else
Exit Sub
End If
End Sub
Public Sub Debuglog(ByVal LogData As String)
If Debug = True Then
Using w As StreamWriter = File.AppendText("KeyzPal_debug.log")
w.WriteLine(LogData)
w.Close()
End Using
Else
Exit Sub
End If
End Sub
End Module