- From: Joe Williams <
>
- To:
- Subject: [chef] Re: chef client logging to syslog
- Date: Tue, 15 Sep 2009 10:37:20 -0700
Thanks for posting this. I have been wondering if I could get the
chef-client logs into syslog, seems easy enough.
-Joe
On Mon, 14 Sep 2009 08:58:54 -0700
Sig Lange
<
>
wrote:
>
Syslog logger is at http://seattlerb.rubyforge.org/SyslogLogger/
>
>
install w/ gem
>
# gem install SyslogLogger
>
>
A "free" quick n dirty method to get chef-client (and chef-solo) to
>
log syslog
>
>
gem install
>
Add the following to /etc/chef/client.rb (or solo.rb)
>
>
--- [ begin snip ] ---
>
>
require 'syslog_logger'
>
Chef::Log.logger = SyslogLogger.new("chef")
>
>
--- [ end snip ] ---
>
>
Ideally this would be a patch to chef-(solo|client) which could easily
>
be configured *correctly.* but for immediate future, this fits the
>
bill.
>
>
Cheers,
>
~ Sig
--
Name: Joseph A. Williams
Email:
Blog:
http://www.joeandmotorboat.com/
Archive powered by MHonArc 2.6.16.