diff --git a/conf.c b/conf.c index 24949685..9f647c20 100644 --- a/conf.c +++ b/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"); } diff --git a/motion.1 b/motion.1 index cb201027..f9bd3b6f 100644 --- a/motion.1 +++ b/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