search for: report_ev

Displaying 2 results from an estimated 2 matches for "report_ev".

Did you mean: report_e
2004 Feb 26
2
Trivial API question
I know - I like to futz. I''m thinking of changing the way I pass optional arguments. This is from EventLog: # Write an event to the event log # Current way el.report_event( "source" => "foo", "category" => 0x2, "event_id" => 0x3, "data" => "Warning! Danger Will Robinson!", "type" => EventLog::WARN ) # Proposed way el.report_event{ |e| e.source = &quo...
2007 Nov 28
4
Can''t write to "Windows PowerShell" source with win32-eventlog
...9;', :key_name => ''foo'', :category_count => 2, :event_message_file => ''foo.dll'', :category_message_file => ''foo.dll'' ) EventLog.open(''Windows PowerShell'') do |log| log.report_event( :source => "foo", :event_type => EventLog::WARN, :category => "0x00000002L".hex, :event_id => "0x00000003L".hex, :data => "I''m warning you!" ) end As Tim mentioned, this doesn...