Write to event log with logevent.exe

Freely available command-line utility to log an event to the Application event log with insertion strings.

The logevent.exe utility is included in the SysAdmin Tools.

C:\Users\demo>logevent.exe /help USAGE: logevent.exe {/logInformation|/logWarning|/logError} /i <eventid> [/c <event category>] [/s <event source>] [//] [/version] [/?] <insertion string> ... Where: /logInformation (OR required) Log with information severity -- OR -- /logWarning (OR required) Log with warning severity -- OR -- /logError (OR required) Log with error severity /i <eventid>, /id <eventid> (required) Event ID /c <event category>, /category <event category> Event Category (numerical) /s <event source>, /source <event source> Log event under specified event source //, /ignore_rest Ignores the rest of the labeled arguments following this flag. /version Displays version information and exits. /?, /help Displays usage information and exits. <insertion string> (accepted multiple times) event insertion string Command-line utility to log an event to the Application event log

Write to event log

logevent /logInformation /i 1000 /s MyAppSource