Harkon Posted May 20, 2007 Posted May 20, 2007 Greetings to all, I am logging my errors in Windows' Event Viewer. However I would like to be able to write these logs in a different (custom) Log File instead of the native 'Application' log file. Is that possible? Could someone give a hint? thank you very much Quote
Administrators PlausiblyDamp Posted May 21, 2007 Administrators Posted May 21, 2007 If Not EventLog.Exists("Your Log Name") Then EventLog.CreateEventSource("AppName", "Your Log Name") End If Dim log As New EventLog("Your Log Name") log.Source = "AppName" log.WriteEntry("Blah") Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.