I want to log from my recipe. For example i use:
log ‘message’ do
message 'This is a test message that will be added to the log.'
When executing chef-client for this recipe, i see the log in the command prompt output.
How can I log to a log file instead ?
Also, this recipe will be executed as a chef push job and after the recipe execution, i want to see the log file.
Please suggest how I can log to a log file.