Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 887 Bytes

ruby_style_basics_chef_log.md

File metadata and controls

40 lines (37 loc) · 887 Bytes

Chef::Log will print log entries to the default logger that is configured for the machine on which Chef Infra Client is running. (To create a log entry that is built into the resource collection, use the log resource instead of Chef::Log.)

Supported log levels

Log Level Syntax
Fatal Chef::Log.fatal('string')
Error Chef::Log.error('string')
Warn Chef::Log.warn('string')
Info Chef::Log.info('string')
Debug Chef::Log.debug('string')