Configuring the Application EventLog from .NET

Topics: Logging Application Block
Jul 12, 2008 at 8:47 AM
Hello guys,

I had no idea where to write this thread, so i ended up writing it here(some lame connection to the entlib logging application block :) )

Does anyone know how to configure the Application Event Log (The standard eventlog of windoes) from C#?
I tried to use the EventLogConfiguration class:

EventLogConfiguration config = new EventLogConfiguration("Application");
But i got UnsupportedPlatformException(I am not quite sure that this is the execat name of the exception...).

Does anyone know how to use it, or other way to configure the eventlog?

Thanks,

Ron
Jul 14, 2008 at 4:34 PM
The EventLogConfiguration works only on Vista. But what do you mean by "configure the eventlog"? Setting max log file sizes?

Fernando


rondana wrote:
Hello guys,

I had no idea where to write this thread, so i ended up writing it here(some lame connection to the entlib logging application block :) )

Does anyone know how to configure the Application Event Log (The standard eventlog of windoes) from C#?
I tried to use the EventLogConfiguration class:

EventLogConfiguration config = new EventLogConfiguration("Application");
But i got UnsupportedPlatformException(I am not quite sure that this is the execat name of the exception...).

Does anyone know how to use it, or other way to configure the eventlog?

Thanks,

Ron