1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
<!--plsfield:text-->
<HTML><HEAD>
<TITLE>C API Reference -- Ns_Log</TITLE>
<LINK rel=Previous href="c-ch243.htm">
<LINK rel=ToC href="toc.htm">
<LINK rel=Index href="master.htm">
<LINK rel=Next href="c-ch245.htm">
</HEAD><BODY BGCOLOR="#ffffff"><A NAME="topofpage"></A>
<TABLE WIDTH=100%>
<TR>
<TD ALIGN=LEFT>
<A NAME="topofpage"></A> <IMG SRC="as-c-sm.gif">
</TD>
<TD ALIGN=RIGHT>
<A href="c-ch243.htm"><IMG BORDER="0" src=navbprev.gif alt="[ Previous ]"></A>
<A href=toc.htm> <IMG BORDER="0" src=navbhome.gif alt="[ Contents ]"></A>
<A href=master.htm> <IMG BORDER="0" src=navbhelp.gif alt="[ Index ]"></A>
<A href="c-ch245.htm"> <IMG BORDER="0" src=navbnext.gif alt="[ Next ]"></A>
<A name="7983"> </A>
</TD>
</TR>
</TABLE>
<a name="124634">
</a><h3>Ns_Log</h3>
<a name="124635">
</a><h4>Overview</h4>
Log formatted message
<a name="62206">
</a><a name="133085">
</a><h4>Syntax</h4>
<pre> <a name="62208"></a>void Ns_Log(
<a name="62209"></a>Ns_LogSeverity severity,
<a name="62210"></a>char *fmt,
<a name="62211"></a>...
<a name="62212"></a>);
</pre><p><a name="134512">
</a><h4>Description</h4>
<p><a name="62214">
</a>The Ns_Log function writes formatted messages to the server log file. Allowable values for severity are:<Table Border = "3">
<tr><td><p><a name="62217">
</a>Notice</p>
<td><p><a name="62219">
</a>Something interesting occurred.</p>
<tr><td><p><a name="62221">
</a>Warning</p>
<td><p><a name="62223">
</a>Maybe something bad occurred.</p>
<tr><td><p><a name="62225">
</a>Error</p>
<td><p><a name="62227">
</a>Something bad occurred.</p>
<tr><td><p><a name="62229">
</a>Fatal</p>
<td><p><a name="62231">
</a>Something extremely bad occurred. The server will shut down after logging this message.</p>
<tr><td><p><a name="62233">
</a>Bug</p>
<td><p><a name="62235">
</a>Something occurred that implies there is a bug in your code.</p>
<tr><td><p><a name="62237">
</a>Debug</p>
<td><p><a name="62239">
</a>If the server is in Debug mode, the message is printed. Debug mode is specified in the [ns/parameters] section of the configuration file. If the server is not in debug mode, the message is not printed.</p>
</Table></p>
<p><a name="230802">
</a></p>
<a name="230803">
</a><h4>Examples</h4>
<pre> <a name="230805"></a>char *hServer; /* server handle */
<a name="230832"></a>char *hModule; /* module handle */
<a name="230833"></a>Ns_Log(Notice, "Initializing module %s on server %s",
<a name="230847"></a> hModule, hServer);
<a name="230841"></a>
</pre><p>
<TABLE BORDER="2" CELLPADDING="1" width="100%">
<TR><TD COLSPAN=3><P ALIGN=Center>
<IMG SRC="bluebult.gif">
<A HREF="#topofpage">
<FONT SIZE=-1>Top of Page</FONT></A>
<IMG SRC="bluebult.gif">
</TD></TR>
<TR><TD COLSPAN=3><P ALIGN=Center>
<A href="c-ch243.htm">
<IMG BORDER="0" src=navbprev.gif alt="[ Previous ]"></A>
<A href=toc.htm>
<IMG BORDER="0" src=navbhome.gif alt="[ Contents ]"></A>
<A href=master.htm>
<IMG BORDER="0" src=navbhelp.gif alt="[ Index ]"></A>
<A href="c-ch245.htm">
<IMG BORDER="0" src=navbnext.gif alt="[ Next ]"></A>
<BR align=center>
<FONT size=-1>Copyright © 1998-99 America Online,
Inc.</FONT>
</TD></TR></TABLE></BODY></HTML><!--plsfield:end-->
|