Implement support for logging configuration
Adds `bind::logging::channel` and `bind::logging::category` defines in order to support logging configuration.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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' %>;
|
||||
};
|
||||
@@ -1,4 +1,5 @@
|
||||
# This file is managed by puppet - changes will be lost
|
||||
include "<%= @confdir %>/logging.conf";
|
||||
include "<%= @confdir %>/acls.conf";
|
||||
include "<%= @confdir %>/keys.conf";
|
||||
include "<%= @confdir %>/views.conf";
|
||||
|
||||
Reference in New Issue
Block a user