views:

14

answers:

1

I'm looking for a way to create a new log in the Windows Event Viewer. With eventcreate, I can create an event for a certain log and source, but if I give a non existing log name, I get an error saying the '....' log does not exist.

If I use the C# EventLog.CreateEventSource, the Log is automatically created.

So, how do I create such a log under Applications and Services Logs in Event Viewer?

And, if not possible with Command Prompt, is it possible in the Event Viewer itself to create an extra log? (I do not want to go and mess in the registry, because like that you can also create a log).

+1  A: 

I resorted to writing a little command line utility myself.

tdammers
Indeed, will do that too. thx.
Lieven Cardoen

related questions