⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wpwrlog.html

📁 vxworks相关论文
💻 HTML
字号:
<html><head><!-- /vobs/wpwr/docs/tornado-api/tgtint/wpwrlog.html - generated by refgen from wpwrlog.c --> <title> wpwrlog </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>Tornado API Reference :  Target Server Internal Routines</i></a></p></blockquote><h1>wpwrlog</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong>wpwrlog</strong> - wpwr log utilities library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./wpwrlog.html#wpwrLogHeaderSet">wpwrLogHeaderSet</a></i>(&nbsp;)</b>  -  set the message header<br><b><i><a href="./wpwrlog.html#wpwrLogRaw">wpwrLogRaw</a></i>(&nbsp;)</b>  -  log a raw message to <b>stderr</b><br><b><i><a href="./wpwrlog.html#wpwrLogMsg">wpwrLogMsg</a></i>(&nbsp;)</b>  -  log a message.<br><b><i><a href="./wpwrlog.html#wpwrLogWarn">wpwrLogWarn</a></i>(&nbsp;)</b>  -  log a warning message.<br><b><i><a href="./wpwrlog.html#wpwrLogErr">wpwrLogErr</a></i>(&nbsp;)</b>  -  log an error message.<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains the logging facility used by the Tornado tools, and thetarget server. There are three kinds of logs : Information, Warnings andErrors. A fourth type (Raw) permits adding information immediately afteran other logging message.A header (tool name and date) is displayed each time the loggingcontext is modified (i.e, each time <b><i><a href="./wpwrlog.html#wpwrLogHeaderSet">wpwrLogHeaderSet</a></i>(&nbsp;)</b> is set).<p></blockquote><h4>INCLUDE</h4><blockquote><p>#include "<b>wpwrlog.h</b>"<p></blockquote><h4>LIBRARY</h4><blockquote><p>Those routines are available when linking with the <b>libwpwr</b> shared lib.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wpwrlog.html#top">wpwrlog</a></b>, <i>API Programmer's Guide: Target Server Back End </i><hr><a name="wpwrLogHeaderSet"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>wpwrLogHeaderSet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wpwrLogHeaderSet</i>(&nbsp;)</strong> - set the message header</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre> void wpwrLogHeaderSet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine prepares a message header. This header will be displayed laterby wpwrLogMsg (), wpwrLogWarn () or wpwrLogErr ().A message header holds the following information:<p><i>command_name</i> (<i>caller_symbolic_ID</i>): <i>timestamp</i><p>Example :<pre>tgtsvr (t80-206@couesnon): Tue Jun  9 15:19:56 1998</pre>After the header has been displayed by a logging function, it must be resetby a call to wpwrLogHeaderSet () in order to print it again. This routineshould be called on a regular basis, since the header is printedonly once otherwise.<p></blockquote><h4>RETURNS </h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wpwrlog.html#top">wpwrlog</a></b><hr><a name="wpwrLogRaw"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>wpwrLogRaw</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wpwrLogRaw</i>(&nbsp;)</strong> - log a raw message to <b>stderr</b></p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void wpwrLogRaw    (    char * fmt /* error message to log */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine prints the caller's message. This routine should be used only toadd information immediately after a message string printed by one of the otherlogging functions. The informations will be printed on the same line.<p></blockquote><h4>RETURNS </h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wpwrlog.html#top">wpwrlog</a></b><hr><a name="wpwrLogMsg"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>wpwrLogMsg</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wpwrLogMsg</i>(&nbsp;)</strong> - log a message.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void wpwrLogMsg    (    char * fmt /* error message to log */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine prints the caller's message formatted as follows:<p><i>command_name</i> (<i>symbolic_name</i>): <i>timestamp</i><br>&nbsp;&nbsp;&nbsp;&nbsp;<i>users_message</i><p>Example :<pre>tgtsvr (t80-206@couesnon): Tue Jun  9 15:19:56 1998Connecting to target agent...</pre>The header is printed only at the first invocation after a call towpwrLogHeaderSet ().<p></blockquote><h4>RETURNS </h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wpwrlog.html#top">wpwrlog</a></b><hr><a name="wpwrLogWarn"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>wpwrLogWarn</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wpwrLogWarn</i>(&nbsp;)</strong> - log a warning message.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void wpwrLogWarn    (    char * fmt /* error message to log */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine prints the caller's warning message , formatted as follows:<p><i>command_name</i> (<i>symbolic_name</i>): <i>timestamp</i><br>&nbsp;&nbsp;&nbsp;&nbsp;Warning:&nbsp;<i>users_message</i><p>Example :<pre>tgtsvr (t80-206@couesnon): Tue Jun  9 15:19:56 1998Warning: Can't checksum core file: request not supported by the Target Agent</pre>The header is printed only at the first invocation after a call towpwrLogHeaderSet ().<p></blockquote><h4>RETURNS </h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wpwrlog.html#top">wpwrlog</a></b><hr><a name="wpwrLogErr"></a><p align=right><a href="rtnIndex.html"><i>Target Server Internal Routines :  Routines</i></a></p></blockquote><h1><i>wpwrLogErr</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>wpwrLogErr</i>(&nbsp;)</strong> - log an error message.</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void wpwrLogErr    (    char * fmt /* error message to log */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine prints the caller's error message, formatted as follows :<p><i>command_name</i> (<i>symbolic_name</i>): <i>timestamp</i><br>&nbsp;&nbsp;&nbsp;&nbsp;Error:&nbsp;<i>users_message</i><p>Example :<pre>tgtsvr (t80-206@couesnon): Tue Jun  9 15:19:56 1998Error: Your license is now invalid.</pre>The header is printed only at the first invocation after a call toThe header is printed only at the first invocation after a call towpwrLogHeaderSet ().<p></blockquote><h4>RETURNS </h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wpwrlog.html#top">wpwrlog</a></b></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -