Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2004

Tip: Looking for answers? Try searching our database.

Event Log Setting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jothi Magesh - 20 May 2004 08:21 GMT
Hi
How to set the event log's overwrite property from vb.net

i.e, when v r writting errors in the event log continously, at one point of time the maximum size for that event log will be reached and if v try to write in to the event log it will throw an error message such as "event log is full"
but if set the overwrite property for that eventlog it will overwrite automatically without any error message
i want to set this property thrw vb.net codin

thnks and best regard
  Jothi Mages
Sooraj PM - 20 May 2004 08:46 GMT
Hi

You can use Clear Metho

Dim MyLog as New EventLog(
MyLog.Log = "MyAppLog
MyLog.Clear(

you must have admin previlage in the computer where the log avaialable

Sooraj P
Microsoft India Community Star
Jothi Magesh - 20 May 2004 09:21 GMT
Hi Sooraj

thanks for ur idea
but the clear fn will clear all the logs available i dont want to do i like tha
my aim is to override the existing log

thnks and best regard
 Jothi Magesh
Sooraj PM - 20 May 2004 11:41 GMT
H

You need to go to the Event Viewer. Select the Event Viewer Log. Click Properties. Check the option Overwrite events as needed

Sooraj P
Microsoft India Community Star

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.