bind_logging_channel
This resource will configure a destination for logs to be sent to. To actually send logs you need to also configure a bind_logging_category
.
Actions
Action | Description |
---|---|
:create | Creates a BIND logging destination channel |
Properties
Name | Type | Default | Description |
---|---|---|---|
bind_config | String | default | Name of the bind_config resource to notify actions on |
destination | String 1 | String containing the destination name | |
facility | String (Must be a valid syslog facility) | String containing the syslog facility to use for the syslog destination | |
path | String | File name used for the file destination | |
print_category | true , false | false | Boolean representing if we should print the category in the output message |
print_severity | true , false | false | Boolean representing if we should print the severity of the log message to the output channel |
print_time | true , false | false | Boolean representing if we should print the time in the log message sent to the output channel |
severity | String 2 | dynamic | String containing the minimum severity of BIND logs to send to this channel |
size | String | Maximum size of the log file used for the file destination | |
versions | Integer | Number of versions of the log file used for the file destination |
1 Must be one of: stderr
, syslog
, file
, or null
2 Can be critical, error, warning, notice, info, dynamic, or debug (this must be followed by a number representing the debug verbosity).
Examples
bind_logging_channel 'querylog' do
destination 'file'
severity 'info'
path '/tmp/query.log'
versions 5
size '10m'
print_category true
print_severity true
print_time true
end
bind_logging_channel 'syslog' do
destination 'syslog'
facility 'daemon'
severity 'info'
end