<!--
- $Id: gfs-options.xml,v 1.2 2005-03-14 11:12:16 adam Exp $
+ $Id: gfs-options.xml,v 1.3 2005-10-20 19:28:04 quinn Exp $
Options for generic frontend server and yaz-ztest.
Included in both manual and man page for yaz-ztest
-->
</citerefentry>.
</para></listitem>
</varlistentry>
+
+ <varlistentry><term><literal>-m </literal>
+ <replaceable>time-format</replaceable></term>
+ <listitem><para>
+ Sets the format of time-stamps in the log-file. Specify a string in
+ the input format to <literal>strftime()</literal>.
+ </para></listitem>
+ </varlistentry>
</variablelist>
* NT threaded server code by
* Chas Woodfield, Fretwell Downing Informatics.
*
- * $Id: statserv.c,v 1.32 2005-08-22 20:34:21 adam Exp $
+ * $Id: statserv.c,v 1.33 2005-10-20 19:28:04 quinn Exp $
*/
/**
yaz_log_init_level(control_block.loglevel);
get_logbits(1);
- while ((ret = options("1a:iszSTl:v:u:c:w:t:k:d:A:p:DC:f:",
+ while ((ret = options("1a:iszSTl:v:u:c:w:t:k:d:A:p:DC:f:m:",
argv, argc, &arg)) != -2)
{
switch (ret)
option_copy(control_block.logfile, arg);
yaz_log_init(control_block.loglevel, me, control_block.logfile);
break;
+ case 'm':
+ if (!arg) {
+ fprintf(stderr, "%s: Specify time format for log file.\n", me);
+ return(1);
+ }
+ yaz_log_time_format(arg);
+ break;
case 'v':
control_block.loglevel =
yaz_log_mask_str_x(arg,control_block.loglevel);
fprintf(stderr, "Usage: %s [ -a <pdufile> -v <loglevel>"
" -l <logfile> -u <user> -c <config> -t <minutes>"
" -k <kilobytes> -d <daemon> -p <pidfile> -C certfile"
- " -ziDST1 -w <directory> <listener-addr>... ]\n", me);
+ " -ziDST1 -m <time-format> -w <directory> <listener-addr>... ]\n", me);
return 1;
}
}