Groups | Blog | Home
all groups > dotnet distributed apps > november 2003 >

dotnet distributed apps : How to increase the size of custom log


Prasad
11/18/2003 4:16:28 PM
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.

rkiss NO[at]SPAM pathcom.com
11/18/2003 7:48:21 PM
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


[quoted text, click to view]
AddThis Social Bookmark Button