You can even register your own event source and create your custom event log.
The eventlogs are differentiated by the first 8 characters of their name, so be careful about that.
The code that creates your custom event log and registers event source must be run with appropriate access rights to EventLog keys in registry. You need to have full access rights to the following key:
HKLM\System\CurrentControlSet\Service\EventLog
(use regedt32.exe to set permissions)
The following code registers your custom event source and creates the log:
System.Diagnostics.EventLog el = new System.Diagnostics.EventLog ();
if (!System.Diagnostics.EventLog.SourceExists (strSource))
System.Diagnostics.EventLog.CreateEventSource (strSource, strLog);
else if (System.Diagnostics.EventLog.LogNameFromSourceName (strSource, ".") != strLog)
{
System.Diagnostics.EventLog.DeleteEventSource (strSource);
System.Diagnostics.EventLog.CreateEventSource (strSource, strLog);
}
Another quite convinient solution is to use the VS.Net designer, create a component class, and use the EventLog component from the component Toolbox. Then you can even easily add automatic intsallers to the project.