mirror of
https://github.com/Motion-Project/motion.git
synced 2026-04-21 06:27:00 -04:00
Added information to use parameter -l to log to syslog and stderr instead of file.
This commit is contained in:
3
conf.c
3
conf.c
@@ -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
motion.1
4
motion.1
@@ -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.
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user