Because the logging class has been rewritten in chef 11.6 and that the trick that consisted of adding
# log via syslog
require 'syslog_logger'
SyslogLogger.class_eval do
attr_accessor :sync, :formatter
end
log_location SyslogLogger.new("chef-client")
in chef client config file does not work anymore
Add a few more lines, to trick it·
@@log_level = log_level
# log via syslog
require 'syslog_logger'
SyslogLogger.class_eval do
attr_accessor :sync, :formatter
def close
true
end
def write(msg="")
self.send(@@log_level, msg)
end
end
log_location SyslogLogger.new("chef-client")
And you get your syslog back