repmgr 4.1.1 Documentation | |||
---|---|---|---|
Prev | Up | Chapter 4. repmgr configuration | Next |
By default, repmgr and repmgrd write log output to STDERR. An alternative log destination can be specified (either a file or syslog).
Note: The repmgr application itself will continue to write log output to STDERR even if another log destination is configured, as otherwise any output resulting from a command line operation will "disappear" into the log.
This behaviour can be overriden with the command line option --log-to-file, which will redirect all logging output to the configured log destination. This is recommended when repmgr is executed by another application, particularly repmgrd, to enable log output generated by the repmgr application to be stored for later reference.
One of DEBUG, INFO, NOTICE, WARNING, ERROR, ALERT, CRIT or EMERG.
Default is INFO.
Note that DEBUG will produce a substantial amount of log output and should not be enabled in normal use.
Logging facility: possible values are STDERR (default), or for syslog integration, one of LOCAL0, LOCAL1, ..., LOCAL7, USER.
If log_facility is set to STDERR, log output can be redirected to the specified file.
See Section 13.4 for information on configuring log rotation.
This setting causes repmgrd to emit a status log line at the specified interval (in seconds, default 300) describing repmgrd's current state, e.g.:
[2018-07-12 00:47:32] [INFO] monitoring connection to upstream node "node1" (node ID: 1)