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 / Distributed Applications / November 2003

Tip: Looking for answers? Try searching our database.

How to increase the size of custom log

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Prasad - 18 Nov 2003 10:46 GMT
Hi:

I am creating a custom log from windows service using .NET.  I want to
change to default settings of this custom log.  One is, I want to increase
the size of custom log from size 512 KB to 10240 KB.  And second is, I want
to make 'Overwrite events as needed' radio button as selected, instead of
'Overwrite events older than 7 days'.  How can i make these changes using
.NET classes.

Thanks
- Prasad.
Roman Kiss - 19 Nov 2003 03:48 GMT
There is no direct class to handle that, but have a look at the
registry (for instance Application source):

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\.NET
Runtime]

and use the registry class to change the value of the selected
parameter such as size, etc.

HTH

Roman

> Hi:
>
[quoted text clipped - 7 lines]
> Thanks
> - Prasad.

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.