Skip to content

Commit

Permalink
Added information to use parameter -l to log to syslog and stderr ins…
Browse files Browse the repository at this point in the history
…tead of file.
  • Loading branch information
sackmotion committed Jun 6, 2010
1 parent d8063fb commit 45da753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2320,10 +2320,11 @@ static void usage()
printf("-d level\t\tLog level (1-9) (EMR, ALR, CRT, ERR, WRN, NTC, ERR, DBG, ALL). default: 6 / NTC.\n");
printf("-k type\t\t\tType of log (STR, ENC, NET, DBL, EVT, TRK, VID, ALL). default: ALL.\n");
printf("-p process_id_file\tFull path and filename of process id file (pid file).\n");
printf("-l log file \t\tFull path and filename of log file.\n");
printf("-l log file \t\tFull path and filename of log file. ( use -l syslog to log to stderr and syslog )\n");
printf("-h\t\t\tShow this screen.\n");
printf("\n");
printf("Motion is configured using a config file only. If none is supplied,\n");
printf("it will read motion.conf from current directory, ~/.motion or %s.\n", sysconfdir);
printf("e.g run motion debugging video only , no daemon and logging to stderr and syslog :\n\n\t ./motion -n -l syslog -d 9 -k VID\n");
printf("\n");
}
4 changes: 2 additions & 2 deletions motion.1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Set type of log (STR, ENC, NET, DBL, EVT, TRK, VID, ALL). (default: ALL)
Full path and filename for process id file (pid file). E.g /var/run/motion.pid. Default is not defined. Pid file is only created when Motion is started in daemon mode.
.TP
.B \-l
Full path and filename of log file.
Full path and filename of log file. ( use -l syslog to log to stderr and syslog )
.TP
.SH "CONFIG FILE OPTIONS"
These are the options that can be used in the config file.
Expand Down Expand Up @@ -208,7 +208,7 @@ Use a file to save logs messages, if not defined stderr and syslog is used.
.B logfile string
Values: Max 4095 characters / Default: Not defined
.br
Use a file to save logs messages, if not defined stderr and syslog is used.
Use a file to save logs messages, if not defined stderr and syslog is used. ( if syslog is set then will log to stderr and syslog )
.TP
.B log_level integer
Values: 1 - 9 / Default: 6
Expand Down

0 comments on commit 45da753

Please sign in to comment.