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] "Prasad" <paileni@vertexcs.com> wrote in message news:<OxRIiAcrDHA.2000@TK2MSFTNGP10.phx.gbl>...
> 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