By default, ltcluster and ltclusterd write log output to
STDERR
. An alternative log destination can be specified
(either a file or syslog
).
The ltcluster 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 ltcluster is executed by another application, particularly ltclusterd,
to enable log output generated by the ltcluster application to be stored for later reference.
log_level
(string
)
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.
log_facility
(string
)
Logging facility: possible values are STDERR
(default), or for
syslog integration, one of LOCAL0
, LOCAL1
, ...
,
LOCAL7
, USER
.
log_file
(string
)
If log_facility is set to STDERR
, log output
can be redirected to the specified file.
See Section 11.4 for information on configuring log rotation.
log_status_interval
(integer
)
This setting causes ltclusterd to emit a status log
line at the specified interval (in seconds, default 300
)
describing ltclusterd's current state, e.g.:
[2018-07-12 00:47:32] [INFO] monitoring connection to upstream node "node1" (ID: 1)