<arg choice="opt"><option>-f <replaceable>config</replaceable></option></arg>
<arg choice="opt"><option>-h <replaceable>ip:port</replaceable></option></arg>
<arg choice="opt"><option>-l <replaceable>logfile</replaceable></option></arg>
+ <arg choice="opt"><option>-m <replaceable>timeformat</replaceable></option></arg>
<arg choice="opt"><option>-p <replaceable>pidfile</replaceable></option></arg>
<arg choice="opt"><option>-R <replaceable>recfile</replaceable></option></arg>
<arg choice="opt"><option>-t</option></arg>
</listitem>
</varlistentry>
<varlistentry>
+ <term>-m <replaceable>timeformat</replaceable></term>
+ <listitem><para>
+ Sets the format of time-stamps for logging.
+ Refer to the
+ <ulink
+ url="http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html">
+ strftime(3)</ulink>
+ man page for the format.
+ </para></listitem>
+ </varlistentry>
+ <varlistentry>
<term><option>-p <replaceable>pidfile</replaceable></option></term>
<listitem>
<para>
yaz_log_init_prefix("pazpar2");
yaz_log_xml_errors(0, YLOG_WARN);
- while ((ret = options("dDf:h:l:p:R:tu:v:Vw:X", argv, argc, &arg)) != -2)
+ while ((ret = options("dDf:h:l:m:p:R:tu:v:Vw:X", argv, argc, &arg)) != -2)
{
switch (ret)
{
yaz_log_init_file(arg);
log_file_in_use = 1;
break;
+ case 'm':
+ yaz_log_time_format(arg);
+ break;
case 'p':
pidfile = arg;
break;
" -f configfile Configuration\n"
" -h [host:]port Listener port\n"
" -l file Log to file\n"
+ " -m logformat log time format (strftime)\n"
" -p pidfile PID file\n"
" -R recfile HTTP recording file\n"
" -t Test configuration\n"