Skip to content

Instantly share code, notes, and snippets.

@mrtazz mrtazz/client.rb
Created Sep 4, 2012

What would you like to do?
send chef-client output to syslog
require 'rubygems'
require 'syslog-logger'
log_level :info
Logger::Syslog.class_eval do
attr_accessor :sync, :formatter

This comment has been minimized.

Copy link

sacx commented Jul 11, 2013

Debian users:

If you installed chef from repository,don't forget to comment out LOGFILE from /etc/default/chef-client to work. If not, this syslog solution will not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.