Skip to content

Commit

Permalink
Default log file name changed to /var/log/mbusd.log
Browse files Browse the repository at this point in the history
  • Loading branch information
3cky committed Dec 25, 2023
1 parent 7475bdf commit d6e6b74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion conf/mbusd.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -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 #############

Expand Down
2 changes: 1 addition & 1 deletion src/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6e6b74

Please sign in to comment.