Write to System EventLog : EventLog « Windows « VB.Net Tutorial






Imports System.Diagnostics

Module Module1
    Sub Main()
        Dim Log As New EventLog("Application")
        Log.Source = "FormEventLog"
        Log.WriteEntry("www.java2s.com")

    End Sub
End Module








24.12.EventLog
24.12.1.Write to System EventLog
24.12.2.Display all Application EventLog
24.12.3.EventLogEntryType.Information
24.12.4.Deletes a log from the specified computer
24.12.5.Create the source MySource if it does not already exist, and writes an entry to the event log MyNewLog.