Issue #21641 has been reported by Josh Cooper.

----------------------------------------
Bug #21641: Windows puppet service should log to the eventlog
https://projects.puppetlabs.com/issues/21641

* Author: Josh Cooper
* Status: Accepted
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: windows
* Branch: 
----------------------------------------
The windows service code (daemon.rb) logs to a file, since that was implemented 
prior to eventlog support. Now that we have the latter, the daemon code should 
use it, e.g. 

<pre>
require 'win32/eventlog'
eventlog = Win32::EventLog.open("Application")
eventlog.report_event(
  :source      => "Puppet",
  :event_type  => Win32::EventLog::INFO, # or WARN, ERROR
  :event_id    => 0x01, # or 0x02, 0x03
  :data        => "the message"
)
eventlog.close
</pre>



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to