diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-16 15:43:58 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-22 13:03:30 -0700 |
commit | 7412b9721d853bc7afb78c5dc1f3d74441596dd1 (patch) | |
tree | 8c6bf6248cb6657f4486e556c57ae3cd2f3a9bf3 /lib/chef/config.rb | |
parent | 7993d05ac6251b06093f282becf75be7a8a49bd0 (diff) | |
download | chef-7412b9721d853bc7afb78c5dc1f3d74441596dd1.tar.gz |
Use windows evt log by default on windows
Diffstat (limited to 'lib/chef/config.rb')
-rw-r--r-- | lib/chef/config.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb index 755e203f58..d033a2981b 100644 --- a/lib/chef/config.rb +++ b/lib/chef/config.rb @@ -78,7 +78,6 @@ class Chef formatters << [name, file_path] end - # def self.add_event_logger(logger) event_handlers << logger end @@ -456,6 +455,15 @@ class Chef # Event Handlers default :event_handlers, [] + default :disable_event_loggers, false + default :event_loggers do + evt_loggers = [] + if Chef::Platform::windows? + evt_loggers << :win_evt + end + evt_loggers + end + # Exception Handlers default :exception_handlers, [] |