Default log file name changed to /var/log/mbusd.log

This commit is contained in:
Victor Antonovich 2023-12-25 13:00:12 +03:00
parent 7475bdf141
commit d6e6b74a53
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ Usage:
-d Instruct mbusd not to fork itself (non-daemonize).
-L logfile
Specifies log file name ('-' for logging to STDOUT only, relative path or bare filename
will be stored at /var/log, default is /var/log/mbus.log).
will be stored at /var/log, default is /var/log/mbusd.log).
-v level
Specifies log verbosity level (0 for errors only, 1 for warnings and 2 for informational
messages also). If mbusd was compiled in debug mode, valid log levels are up to 9,

View File

@ -10,7 +10,7 @@
loglevel = 2
# Logfile (fully-qualified path, or filename [stored at /var/log/] or - for STDOUT only)
logfile = /var/log/mbus.log
logfile = /var/log/mbusd.log
########## Serial port settings #############

View File

@ -40,7 +40,7 @@ extern int isdaemon;
/* Default log file path and name */
#define LOGPATH "/var/log/"
#define LOGNAME "mbus.log"
#define LOGNAME "mbusd.log"
#ifdef LOG
int log_init(char *logname);