Option --logfile=syslog now works as expected.

pull/780/head
Fredrik Öhrström 2022-12-30 10:07:20 +01:00
rodzic cf8b03586d
commit 8110c900d2
3 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -313,7 +313,7 @@ As {options} you can use:
--listmeters list all meter drivers
--listmeters=<search> list all meter drivers containing the text <search>
--listunits list all unit suffixes that can be used for typing values
--logfile=<file> use this file for logging
--logfile=<file> use this file for logging or --logfile=syslog
--logtelegrams log the contents of the telegrams for easy replay
--logtimestamps=<when> add log timestamps: always never important
--meterfiles=<dir> store meter readings in dir

Wyświetl plik

@ -438,6 +438,11 @@ void setup_log_file(Configuration *config)
if (config->use_logfile)
{
verbose("(wmbusmeters) using log file %s\n", config->logfile.c_str());
if (config->logfile == "syslog")
{
enableSyslog();
return;
}
bool ok = enableLogfile(config->logfile, config->daemon);
if (!ok) {
if (config->daemon) {

Wyświetl plik

@ -73,7 +73,7 @@ Add :verbose to any analyze to get more verbose analyze output.
\fB\--listunits=\fR list all unit suffixes that can be used for typing values
\fB\--logfile=\fR<dir> use this file for logging
\fB\--logfile=\fR<dir> use this file for logging or --logfile=syslog
\fB\--logtelegrams\fR log the contents of the telegrams for easy replay