puppet-bind/templates/logging_channel.erb
Nate Riffe 8504b27498 Implement support for logging configuration
Adds `bind::logging::channel` and `bind::logging::category` defines in order to
support logging configuration.
2017-02-25 12:42:54 -06:00

19 lines
498 B
Plaintext

channel <%= @name %> {
<%- case @destination -%>
<%- when "file" -%>
file "<%= @file_path %>/<%= @file_name %>";
<%- when "syslog" -%>
syslog <%= @syslog_facility %>;
<%- when "stderr" -%>
stderr;
<%- when "null" -%>
null;
<%- end -%>
<%- if @severity and @severity != '' -%>
severity <%= @severity %>;
<%- end -%>
print-category <%= @print_category ? 'yes' : 'no' %>;
print-severity <%= @print_severity ? 'yes' : 'no' %>;
print-time <%= @print_time ? 'yes' : 'no' %>;
};