How do I create a new log in the Event Viewer with Command Prompt? (Windows Server 2008)
I'm looking for a way to create a new log in the Windows Event Vie开发者_运维问答wer. 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).
I resorted to writing a little command line utility myself.
精彩评论