Class: ChefApply::Log
- Inherits:
-
Object
- Object
- ChefApply::Log
- Extended by:
- Mixlib::Log
- Defined in:
- lib/chef_apply/log.rb
Class Method Summary collapse
Class Method Details
.setup(location, log_level) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# 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 ⇒ Object
36 37 38 |
# File 'lib/chef_apply/log.rb', line 36 def self.stream @stream end |