Anonymous user
Write to Windows event log: Difference between revisions
Added zkl
(Adds Clojure solution) |
(Added zkl) |
||
Line 369:
# This command handles everything; use “-type error” to write an error message
twapi::eventlog_log "My Test Event" -type info</lang>
=={{header|zkl}}==
{{trans|Clojure}}
<lang zkl>zkl: System.cmd(0'|eventcreate "/T" "INFORMATION" "/ID" "123" "/D" "Rosetta Code example"|)</lang>
{{out}}
<pre>
SUCCESS: A 'INFORMATION' type event is created in the 'EventCreate' log/source.
0
</pre>
{{omit from|Lotus 123 Macro Scripting|Would overwrite the log file}}
|