The command-line EventCreate.exe
tool registers a user-defined event source in the Registry for the Windows Event Log Viewer to use, like this:
eventcreate /t INFORMATION /ID 100 /L "Application" /SO [SourceName] /D "Description"
I wrote an app that has its own Event Log resource strings and is registered as an event source, per MSDN, but it doesn't use the CustomSource
value and works fine.
I can't find any documentation on MSDN, or elsewhere online, on what CustomSource
is meant for exactly. None of the registered sources on my machines use it.
Does anyone know what CustomSource
is meant for, and how it works? Is it just something internal to EventCreate.exe
, or does the Windows Event Log actually use it for something?
Thanks to @RbMm for pointing out this blog article:
EventCreate and "ERROR: Source parameter is used to identify custom applications/scripts only"