Write to Windows event log: Difference between revisions

add Ruby
({{omit from|Lotus 123 Macro Scripting}})
(add Ruby)
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]
 
=={{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}}==
{{libheader|TWAPI}}
Anonymous user