This done at a global level via option -m for megaproxy server.
</para>
</listitem>
</varlistentry>
+ <varlistentry><term>time-format</term>
+ <listitem>
+ <para>
+ Date+time format if log is written to a custom file (see filename configuration, below), using the format of
+ <ulink
+ url="http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html">
+ strftime(3)</ulink>.
+ </para>
+ <para>
+ Use option -m in invocation of Metaproxy command to set format if yaz_log is used (no filename given).
+ </para>
+ </listitem>
+ </varlistentry>
<varlistentry><term>filename</term>
<listitem>
<para>
- Specifies a name of log file.
+ Specifies a name of log file. If this is omitted, logging is performed
+ using the log system of YAZ (yaz_log).
</para>
</listitem>
</varlistentry>
<arg choice="opt"><option>--config <replaceable>config</replaceable></option></arg>
<arg choice="opt"><option>-D</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>-t</option></arg>
<arg choice="opt"><option>-u <replaceable>ID</replaceable></option></arg>
</varlistentry>
<varlistentry>
+ <term>-m <replaceable>timeformat</replaceable></term>
+ <listitem><para>
+ Sets the format of time-stamps for all logging performed via yaz_log.
+ Refer to
+ <ulink
+ url="http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html">
+ strftime(3)</ulink>
+ man page for the format.
+ </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term>-p <replaceable>pidfile</replaceable></term>
<listitem><para>
Specifies file which holds PID after startup.
set_log_prefix();
- while ((ret = options("c{config}:Dh{help}l:p:tu:V{version}w:X",
+ while ((ret = options("c{config}:Dh{help}l:m:p:tu:V{version}w:X",
argv, argc, &arg)) != -2)
{
switch (ret)
" -c|--config f config filename\n"
" -D daemon and keepalive operation\n"
" -l f log file f\n"
+ " -m logformat log time format (strftime)\n"
" -p f pid file f\n"
" -t test configuration\n"
" -u id change uid to id\n"
case 'l':
yaz_log_init_file(arg);
break;
+ case 'm':
+ yaz_log_time_format(arg);
+ break;
case 'p':
pidfile = arg;
break;