?
Through his blog, the Anvil of Time, Matt looks at "two ways to write to the Event log in Windows and indicate the source of the message... Reportevent External Function and Eventcreate command line command"
Read the rest of Writing in the Windows Event Log