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

📄 log_8h.html

📁 用来介绍ZIG Library游戏网络引擎的文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>log.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>log.h File Reference</h1>Offers logging text strings to text files; after opening a logfile you can set a <a class="el" href="classconsole__c.html">console_c</a> instance to log it's output to it. <a href="#_details">More...</a><p><p><a href="log_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td nowrap align=right valign=top><a name="a1" doxytag="log.h::log_set_prefix"></a>void&nbsp;</td><td valign=bottom><a class="el" href="log_8h.html#a1">log_set_prefix</a> (const char *logpath)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>set root path for all logfiles</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a2" doxytag="log.h::log_open"></a>int&nbsp;</td><td valign=bottom><a class="el" href="log_8h.html#a2">log_open</a> (char *logname1, char *logname2, int maxsize=LOG_DEFAULT_SIZE, bool autolinefeed=true, bool rectime=true)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>open log. returns 0 if fails, returns positive log id if success. if the log file grows beyond "max size", it will open another file with name "logname2", and when this one exceeds the max size, the "logname1" file will be overwritten, and so forth. if "autolinefeed" is "true", a linefeed (<br>) will be added after each call to <a class="el" href="log_8h.html#a3">log()</a>. if "rectime" is "true", the current time will be recorded in the log at every call to <a class="el" href="log_8h.html#a3">log()</a>.</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a3" doxytag="log.h::log"></a>void&nbsp;</td><td valign=bottom><a class="el" href="log_8h.html#a3">log</a> (int logid, const char *fs,...)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>write to given log</em></font><br><br></td></tr><tr><td nowrap align=right valign=top><a name="a4" doxytag="log.h::log_close"></a>void&nbsp;</td><td valign=bottom><a class="el" href="log_8h.html#a4">log_close</a> (int logid)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>close a log</em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Offers logging text strings to text files; after opening a logfile you can set a <a class="el" href="classconsole__c.html">console_c</a> instance to log it's output to it.<p><p><hr><address style="align: right;"><small>Generated on Mon Jan 24 21:14:23 2005 for ZIG by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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