Write to Windows event log: Difference between revisions
m
moved picolisp
m (moved picolisp) |
|||
Line 464:
props["parameters"] = "/t INFORMATION /id 123 /l APPLICATION /so Lingo /d ""E&"Rosetta Code Example""E
shell.shell_exec("EventCreate", props)</lang>
=={{header|PicoLisp}}==▼
PicoLisp doesn't run on Windows. In case of Linux, the equivalent of the event log is the syslog. It can be written with '[http://software-lab.de/doc/refN.html#native native]' C functions, or simply with the 'logger' utility:▼
<lang PicoLisp>: (call 'logger "This is a test")▼
-> T▼
: (call 'logger "This" 'is "another" 'test)▼
-> T</lang>▼
=={{header|Perl}}==
Line 502 ⟶ 494:
SUCCESS: An event of type 'INFORMATION' was created in the 'Application' log with 'EventCreate' as the source.
</pre>
▲=={{header|PicoLisp}}==
▲PicoLisp doesn't run on Windows. In case of Linux, the equivalent of the event log is the syslog. It can be written with '[http://software-lab.de/doc/refN.html#native native]' C functions, or simply with the 'logger' utility:
▲<lang PicoLisp>: (call 'logger "This is a test")
▲-> T
▲: (call 'logger "This" 'is "another" 'test)
▲-> T</lang>
=={{header|PureBasic}}==
|