Added information to use parameter -l to log to syslog and stderr instead of file.

This commit is contained in:
Angel Carpintero
2010-06-06 22:33:43 +02:00
parent d8063fb1df
commit 45da753223
2 changed files with 4 additions and 3 deletions

3
conf.c
View File

@@ -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");
}

View File

@@ -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