Write to Windows event log: Difference between revisions
Content added Content deleted
({{omit from|Lotus 123 Macro Scripting}}) |
(add Ruby) |
||
Line 95: | Line 95: | ||
''Note2:'' See details on registering a new Event Source with Windows at [http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.registerdisplayname.aspx MSDN] |
''Note2:'' See details on registering a new Event Source with Windows at [http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.registerdisplayname.aspx MSDN] |
||
=={{header|Ruby}}== |
|||
{{libheader|win32-utils}} |
|||
<lang ruby>require 'win32/eventlog' |
|||
logger = Win32::EventLog.new |
|||
logger.report_event(:event_type => Win32::EventLog::INFO, :data => "a test event log entry")</lang> |
|||
Instructions on setting up an Event Source is [http://rubyforge.org/docman/view.php/85/1734/mc_tutorial.html here] |
|||
=={{header|Tcl}}== |
=={{header|Tcl}}== |
||
{{libheader|TWAPI}} |
{{libheader|TWAPI}} |