- From: Tyler Ball <
>
- To:
- Subject: [chef] Re: Chef client 12 - setting logging level
- Date: Wed, 28 Jan 2015 15:31:12 -0800
You want to set `node['chef_client']['config’][‘log_level’] = ‘info’` if you
are using the cookbook - the ‘config’ section of attributes are directly
dropped into the /etc/chef/client.rb file. The
https://github.com/opscode-cookbooks/chef-client#usage section shows some
examples of this.
-T
>
On Jan 28, 2015, at 1:35 PM, John Horne
>
<
>
>
wrote:
>
>
Hello,
>
>
We are running chef client 12.0.3 on a CentOS 7 server.
>
>
We have noticed that the 'client.rb' file included no logging entries,
>
and so nothing was logged of the chef-client runs. By setting the
>
'log_file' attribute, we now have a log file created (and the relevant
>
entry in the client.rb file).
>
>
However, it seems that the logging level is defaulting to 'warn', and we
>
cannot see how to change this to 'info'.
>
>
From https://github.com/opscode-cookbooks/chef-client it says that the
>
'log_level' attribute has been deprecated/replaced: 'Not set anymore,
>
use the default log level and output formatting from Chef 11.'
>
>
Does this mean that we cannot change the log level? If I have
>
misunderstood, then how do we alter the log level?
>
>
>
>
Thanks,
>
>
John.
>
>
--
>
----------------------------------------------------
>
John Horne Tel: +44 (0)1752 587287
>
Plymouth University, UK
>
Archive powered by MHonArc 2.6.16.