class ChefCore::Log

Public Class Methods

location() click to toggle source
# File lib/chef_core/log.rb, line 37
def self.location
  @location
end
setup(location, log_level) click to toggle source
# File lib/chef_core/log.rb, line 24
def self.setup(location, log_level)
  if location.is_a?(String)
    if location.casecmp("stdout") == 0
      location = $stdout
    else
      location = File.open(location, "w+")
    end
  end
  @location = location
  init(location)
  Log.level = log_level
end