class ChefApply::Log
Public Class Methods
setup(location, log_level)
click to toggle source
# File lib/chef_apply/log.rb, line 24 def self.setup(location, log_level) if location.is_a?(String) if location.casecmp("stdout") == 0 @stream = $stdout else @stream = File.open(location, "w+") end end init(location) Log.level = log_level end
stream()
click to toggle source
# File lib/chef_apply/log.rb, line 36 def self.stream @stream end