I am confused by the description of the 'name' element in chef docs.
log 'message' do
message 'This is the message that will be added to the log.'
I think the doc just chose the resource block's name a little injudiciously. A better example might be:
log 'foo' do message 'Logging to foo' level :fatal end
In this case, the log resource's name is
'foo', while the
message argument dictates what message to log. If the
message argument is left empty, it defaults to the value of
name (in this case,
'foo'). So, in this case:
log 'foo' do level :fatal end
The literal text
foo would get dumped to your logfile.