Log settingsrepmgr.conflog settingslog settingsconfiguration in repmgr.conf
By default, &repmgr; and &repmgrd; write log output to
STDERR. An alternative log destination can be specified
(either a file or syslog).
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 ,
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.
log_level (string)log_level configuration file parameter
One of , , ,
, , ,
or .
Default is .
Note that will produce a substantial amount of log output
and should not be enabled in normal use.
log_facility (string)
log_facility configuration file parameter
Logging facility: possible values are (default), or for
syslog integration, one of , , ,
, .
log_file (string)
log_file configuration file parameter
If is set to , log output
can be redirected to the specified file.
See for information on configuring log rotation.
log_status_interval (integer)
log_status_interval configuration file parameter
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" (ID: 1)