Initialize log resource with a name as the string to log
name<String> |
Message to log |
collection<Array> |
Collection of included recipes |
node<Chef::Node> |
Node where resource will be used |
# File lib/chef/resource/log.rb, line 45 def initialize(name, run_context=nil) super @resource_name = :log @level = :info @action = :write @allowed_actions.push(:write) @message = name end
<Symbol> Log level, one of :debug, :info, :warn, :error or :fatal
# File lib/chef/resource/log.rb, line 63 def level(arg=nil) set_or_return( :level, arg, :equal_to => [ :debug, :info, :warn, :error, :fatal ] ) end
Generated with the Darkfish Rdoc Generator 2.