Details
Description
i've been using a custom "log" resource that I like because it cleans up my recipes. Here's the syntax and examples:
- 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
- === Example
log "your string to log"
- or
log "a debug string" { level :debug }
Wiki documentation:
Log Resource
Adds log entries from your recipes.
Actions
Attributes
Providers
Examples
log "your string to log"log "a debug string" { level :debug }