Puppet Class: pgpool::config::logs
- Defined in:
- manifests/config/logs.pp
Overview
Class: pgpool::config::logs
This class allows for the configuration of logging related items within the pgpool.conf.
Parameters
- log_destination
-
String. Where to print the logs to. Can be either
syslog
orstderr
. Defaults tostderr
. - log_connections
-
String. Enabling this will result in all connections being logged. Defaults to
off
. - log_statement
-
String. Print out each query that is issued. Defaults to
off
. - log_per_node_statement
-
String. Prints statements for each DB node sperately. Defaults to
off
. - log_error_verbosity
-
String. How verbose should error messages be? Should be one of
terse
,default
, orverbose
Defaults todefault
. - log_standby_delay
-
String. Specifies how to log the replication delay. Should be one of
none
,always
orif_over_threshold
. Defaults toif_over_threshold
. - log_min_messages
-
String. This controls the message levels that are emitted to log. Defaults to
WARNING
. - syslog_facility
-
String. This is the syslog facility to send the logs to. Defaults to
LOCAL0
. - syslog_ident
-
String. This is the process string for syslog. Defaults to
pgpool
. - debug_level
-
Integer. Set to 1 for debug logging. Defaults to
0
.
Variables
N/A
Examples
class { ‘pgpool::config::logs’:
log_destination => 'syslog',
}
Authors
Alex Schultz <aschultz@next-development.com>
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'manifests/config/logs.pp', line 65
class pgpool::config::logs (
$log_destination = 'stderr',
$log_connections = 'off',
$log_statement = 'off',
$log_per_node_statement = 'off',
$log_error_verbosity = 'default',
$log_standby_delay = 'if_over_threshold',
$log_min_messages = 'WARNING',
$syslog_facility = 'LOCAL0',
$syslog_ident = 'pgpool',
$debug_level = 0,
) {
$logs_config = {
'log_destination' => { value => $log_destination },
'log_connections' => { value => $log_connections },
'log_statement' => { value => $log_statement },
'log_per_node_statement' => { value => $log_per_node_statement },
'log_standby_delay' => { value => $log_standby_delay },
'log_error_verbosity' => { value => $log_error_verbosity },
'log_min_messages' => { value => $log_min_messages },
'syslog_facility' => { value => $syslog_facility },
'syslog_ident' => { value => $syslog_ident },
'debug_level' => { value => $debug_level },
}
$logs_defaults = {
ensure => present
}
create_resources(pgpool::config::val, $logs_config, $logs_defaults)
}
|