I have created a console application as part of a data integration solution. In my code, I'm currently writing errors to console. I would like to create a text log file and write errors to it as well as the application completed time.
how do I create log files in vb.net?
Dim hQry2 As Integer = oAPI.AmQueryCreate(intConn)
If (hQry2 = 0) Then Console.WriteLine("hQry2 = 0") Write to a log file