diff --git a/README.md b/README.md index 7356545..588b496 100644 --- a/README.md +++ b/README.md @@ -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, diff --git a/conf/mbusd.conf.example b/conf/mbusd.conf.example index e65f21b..bc9cbdd 100644 --- a/conf/mbusd.conf.example +++ b/conf/mbusd.conf.example @@ -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 ############# diff --git a/src/log.h b/src/log.h index ba46b2e..bccb72e 100644 --- a/src/log.h +++ b/src/log.h @@ -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);