📄 classlogger.html
字号:
<tr> <td class="md" nowrap valign="top"> bool Logger::setMaxLogLevel </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>iLevel</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the maximal log level. Message with a level that are higher this value are ignored when they are logged. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iLevel</em> </td><td>new maximal log level. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the update was succesfull </dl><p>Definition at line <a class="el" href="Logger_8C-source.html#l00205">205</a> of file <a class="el" href="Logger_8C-source.html">Logger.C</a>.<p>References <a class="el" href="Logger_8h-source.html#l00099">iMaxLogLevel</a>.<p>Referenced by <a class="el" href="main_8C-source.html#l00059">main</a>(). </td> </tr></table><a name="a7" doxytag="Logger::setMinLogLevel"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Logger::setMinLogLevel </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>iLevel</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the minimal log level. Message with a level that lies below this value are ignored when they are logged. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iLevel</em> </td><td>new minimal log level. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether the update was succesfull </dl><p>Definition at line <a class="el" href="Logger_8C-source.html#l00187">187</a> of file <a class="el" href="Logger_8C-source.html">Logger.C</a>.<p>References <a class="el" href="Logger_8h-source.html#l00098">iMinLogLevel</a>.<p>Referenced by <a class="el" href="main_8C-source.html#l00059">main</a>(). </td> </tr></table><a name="a15" doxytag="Logger::setOutputStream"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Logger::setOutputStream </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>o</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method sets the output stream to which the log information is written. This outputstream can be standard output (cout) or a reference to a file. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>o</em> </td><td>outputstream to which log information is printed. </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>bool indicating whether update was succesfull. </dl><p>Definition at line <a class="el" href="Logger_8C-source.html#l00266">266</a> of file <a class="el" href="Logger_8C-source.html">Logger.C</a>.<p>References <a class="el" href="Logger_8h-source.html#l00102">os</a>.<p>Referenced by <a class="el" href="main_8C-source.html#l00059">main</a>(). </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="o1" doxytag="Logger::buf"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> char Logger::buf[MAX_LOG_LINE]<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>buffer needed by different methods <p>Definition at line <a class="el" href="Logger_8h-source.html#l00097">97</a> of file <a class="el" href="Logger_8h-source.html">Logger.h</a>.<p>Referenced by <a class="el" href="Logger_8C-source.html#l00103">log</a>(), and <a class="el" href="Logger_8C-source.html#l00134">logWithTime</a>(). </td> </tr></table><a name="o4" doxytag="Logger::iExtraLogLevel"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Logger::iExtraLogLevel<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>extra log level to print information <p>Definition at line <a class="el" href="Logger_8h-source.html#l00100">100</a> of file <a class="el" href="Logger_8h-source.html">Logger.h</a>.<p>Referenced by <a class="el" href="Logger_8C-source.html#l00214">getExtraLogLevel</a>(), <a class="el" href="Logger_8C-source.html#l00169">isInLogLevel</a>(), and <a class="el" href="Logger_8C-source.html#l00223">setExtraLogLevel</a>(). </td> </tr></table><a name="o3" doxytag="Logger::iMaxLogLevel"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Logger::iMaxLogLevel<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>maximal log level to print information <p>Definition at line <a class="el" href="Logger_8h-source.html#l00099">99</a> of file <a class="el" href="Logger_8h-source.html">Logger.h</a>.<p>Referenced by <a class="el" href="Logger_8C-source.html#l00196">getMaxLogLevel</a>(), <a class="el" href="Logger_8C-source.html#l00066">Logger</a>(), and <a class="el" href="Logger_8C-source.html#l00205">setMaxLogLevel</a>(). </td> </tr></table><a name="o2" doxytag="Logger::iMinLogLevel"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int Logger::iMinLogLevel<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>minimal log level to print information <p>Definition at line <a class="el" href="Logger_8h-source.html#l00098">98</a> of file <a class="el" href="Logger_8h-source.html">Logger.h</a>.<p>Referenced by <a class="el" href="Logger_8C-source.html#l00178">getMinLogLevel</a>(), <a class="el" href="Logger_8C-source.html#l00066">Logger</a>(), and <a class="el" href="Logger_8C-source.html#l00187">setMinLogLevel</a>(). </td> </tr></table><a name="o6" doxytag="Logger::os"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> ostream* Logger::os<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>output stream to print messages to <p>Definition at line <a class="el" href="Logger_8h-source.html#l00102">102</a> of file <a class="el" href="Logger_8h-source.html">Logger.h</a>.<p>Referenced by <a class="el" href="Logger_8C-source.html#l00082">log</a>(), <a class="el" href="Logger_8C-source.html#l00066">Logger</a>(), <a class="el" href="Logger_8C-source.html#l00134">logWithTime</a>(), and <a class="el" href="Logger_8C-source.html#l00266">setOutputStream</a>(). </td> </tr></table><a name="o5" doxytag="Logger::strHeader"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> char Logger::strHeader[MAX_HEADER]<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>header string that is printed before msg <p>Definition at line <a class="el" href="Logger_8h-source.html#l00101">101</a> of file <a class="el" href="Logger_8h-source.html">Logger.h</a>.<p>Referenced by <a class="el" href="Logger_8C-source.html#l00234">getHeader</a>(), <a class="el" href="Logger_8C-source.html#l00082">log</a>(), <a class="el" href="Logger_8C-source.html#l00066">Logger</a>(), <a class="el" href="Logger_8C-source.html#l00134">logWithTime</a>(), and <a class="el" href="Logger_8C-source.html#l00243">setHeader</a>(). </td> </tr></table><a name="o0" doxytag="Logger::timing"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classTiming.html">Timing</a> Logger::timing<code> [private]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>timer to print timing information <p>Definition at line <a class="el" href="Logger_8h-source.html#l00096">96</a> of file <a class="el" href="Logger_8h-source.html">Logger.h</a>.<p>Referenced by <a class="el" href="Logger_8C-source.html#l00066">Logger</a>(), <a class="el" href="Logger_8C-source.html#l00134">logWithTime</a>(), and <a class="el" href="Logger_8C-source.html#l00159">restartTimer</a>(). </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Logger_8h-source.html">Logger.h</a><li><a class="el" href="Logger_8C-source.html">Logger.C</a></ul><hr><address><small>Generated on Thu Mar 7 00:37:54 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -