You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-cvs@tcl.apache.org by ro...@apache.org on 2004/11/16 12:11:26 UTC
cvs commit: tcl-websh/doc quickref.xml
ronnie 2004/11/16 03:11:26
Modified: doc quickref.xml
Log:
- fixed documentation of web::logdest (-format and -maxchar explanations)
Revision Changes Path
1.59 +20 -15 tcl-websh/doc/quickref.xml
Index: quickref.xml
===================================================================
RCS file: /home/cvs/tcl-websh/doc/quickref.xml,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- quickref.xml 15 Sep 2004 09:26:53 -0000 1.58
+++ quickref.xml 16 Nov 2004 11:11:26 -0000 1.59
@@ -1372,30 +1372,35 @@
Subcommands are: <option>add</option>,
<option>delete</option>, and <option>names</option>. Options
- are: <option>-maxchar</option>, and
- <option>-format</option>.
+ are: <option>-maxchar n</option>, and
+ <option>-format "format string"</option>.
+ <literal>-maxchar n</literal> truncates the message to a
+ maximum of <literal>n</literal> characters.
</para>
<para>
+ The format string consists of time format specifications for
+ <function>strftime()</function> plus: <literal
+ remap="tt">$p</literal> (process id), <literal
+ remap="tt">$t</literal> (thread id), <literal
+ remap="tt">$l</literal> (log level), <literal
+ remap="tt">$n</literal> (numerical log level), <literal
+ remap="tt">$f</literal> (log facility), <literal
+ remap="tt">$m</literal> (the message), and <literal
+ remap="tt">$$</literal> (dollar sign).
+ Default format is <literal>"%x %X [\$p] \$f.\$l: \$m\n"</literal>
+ </para>
+ <para>
Known plug-ins are: <option>file</option>,
<option>syslog</option>, <option>command</option>,
<option>channel</option>, and
<option>apache</option>. <emphasis>Note</emphasis>: the
plugins may have indiviudal options
(<option>-unbuffered</option>), see documentation below.
-
- The format string consits of format specifications for
- <function>fprintf()</function> plus: <literal
- remap="tt">p</literal> (process id), <literal
- remap="tt">t</literal> (thread id), <literal
- remap="tt">n</literal> (log level), <literal
- remap="tt">f</literal> (log type), and <literal
- remap="tt">m</literal> (the message).
-
</para>
<para>
<programlisting>
- web::logdest add -maxchar 25 -format "%x %X \$l \$m" *.-debug command logTest</programlisting>
+ web::logdest add -maxchar 25 -format "%x %X \$l \$m\n" *.-debug command logTest</programlisting>
</para>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: websh-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: websh-cvs-help@tcl.apache.org