summaryrefslogtreecommitdiff
path: root/lib/chef/config.rb
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-07-31 09:30:00 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2014-10-22 13:03:16 -0700
commit1b644bebe4c6870f8d0fe5c95f013b33823f45c8 (patch)
tree8d8eb33dfabb611288f75a90087d7f38154ce91c /lib/chef/config.rb
parent37cccee7628cab1f512ee9c77d700d6bcdce9d75 (diff)
downloadchef-1b644bebe4c6870f8d0fe5c95f013b33823f45c8.tar.gz
Added function to add event logger
Diffstat (limited to 'lib/chef/config.rb')
-rw-r--r--lib/chef/config.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb
index 9a8117d2c2..755e203f58 100644
--- a/lib/chef/config.rb
+++ b/lib/chef/config.rb
@@ -78,6 +78,11 @@ class Chef
formatters << [name, file_path]
end
+ #
+ def self.add_event_logger(logger)
+ event_handlers << logger
+ end
+
# Config file to load (client.rb, knife.rb, etc. defaults set differently in knife, chef-client, etc.)
configurable(:config_file)