class Chef::Provider::Log::ChefLog

Chef log provider, allows logging to chef's logs

Public Instance Methods

action_write() click to toggle source

Write the log to Chef's log

@return [true] Always returns true

# File lib/chef/provider/log.rb, line 36
def action_write
  logger.send(new_resource.level, new_resource.message)
  new_resource.updated_by_last_action(true) if Chef::Config[:count_log_resource_updates]
end
load_current_resource() click to toggle source

No concept of a 'current' resource for logs, this is a no-op

@return [true] Always returns true

# File lib/chef/provider/log.rb, line 29
def load_current_resource
  true
end