I've a project with which I wants to maintain a log file that if later after release of the product, any issue arise, I can debug the faced issue from this log file. I've one of the solution to write my own text file with writing line at identified positions in the code. But I wants to use some way that is standardized and can capture each and every thing that can be helpful. I've heard about the 'Microsoft Enterprise Libraries' are one of the efficient way to handle log files. can anybody tell me whether these can be more efficient than my own text file and how I can use them in my code easily and efficiently. I've downloaded the library from location Microsoft Enterprise Library Download.
Jump to Post
Private Sub errorLog()
Dim path, file As String
Dim nFileNum As Short
Dim Filename As String
Dim dTaskID As Double
If CInt(TextBox1.Text) > 0 Then
Catch ex As Exception
Filename = "c:\errorlog.txt"
nFileNum = FreeFile()
FileOpen(nFileNum, Filename, OpenMode.Append)
path = "C:\WINDOWS\notepad.exe"
All 2 RepliesReply to this topic
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.