cookbooks/fb_syslog/templates/default/syslog.conf.erb (14 lines of code) (raw):
# This syslog.conf was generated by Chef. To make changes, see
# fb_syslog/README.md
<% node['fb_syslog']['syslog-entries'].to_hash.each_value do |entry| -%>
<% if entry['comment'] -%>
<%= FB::Utils::commentify(entry['comment']) %>
<% end -%>
<%# syslog doesn't support not flushing on OS X, so we cannot use the `-`
prefix for files. %>
<% action = entry['action'] -%>
<% if node.macos? && action.start_with?('-') -%>
<% action.slice!(0) -%>
<% end -%>
<%= "%s %s" % [entry['selector'], action] %>
<% end -%>