kopia lustrzana https://github.com/weetmuts/wmbusmeters
Option --logfile=syslog now works as expected.
rodzic
cf8b03586d
commit
8110c900d2
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue