471,356 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

how to SAve the EventLog

How to create a ".evt" like the Evnt viewer by code.
I whan to save in a file the current Evenlog. I know a can do

public static void SaveLog(){
System.Diagnostics.EventLog oLog = new EventLog("Application");
foreach(System.Diagnostics.EventLogEntry oEntry in oLog.Entries){
//oEntry.Message etc.
}
}

but this kind of file cannot be load directly with the event viewer after...

Thanks

Jul 21 '05 #1
0 1017

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jacob Colding | last post: by
reply views Thread by Franky | last post: by
1 post views Thread by martin | last post: by
3 posts views Thread by Ben | last post: by
reply views Thread by rene | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.