Results 1 to 5 of 5

Thread: exporting logs from VB.NET [solved]

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    20

    Resolved exporting logs from VB.NET [solved]

    I am writing an application that uses a custom eventLog for error / warning storage

    VB Code:
    1. If Not System.Diagnostics.EventLog.SourceExists("ILStep") Then
    2.       EventLog.CreateEventSource("ILStep", "ILStep")
    3.     End If
    4.  
    5.     evtLog = New System.Diagnostics.EventLog("ILStep")
    6.     evtLog.Source = "ILStep"

    and then to view the log, i created a new mmc panel
    VB Code:
    1. Shell("mmc ILStep.msc", AppWinStyle.NormalFocus)

    The customer asked that the logs be exported and cleared weekly. Is there a way to automate the event viewer "Export" and "Clear log" commands through the framework?
    Last edited by superuser666; Nov 23rd, 2004 at 12:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width