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.