Class | Chef::Resource::Log |
In: |
lib/chef/resource/log.rb
|
Parent: | Chef::Resource |
Sends a string from a recipe to a log provider
log "some string to log" do
level :info # (default) also supports :warn, :debug, and :error
end
log "your string to log"
or
log "a debug string" { level :debug }
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 |