📄 classlog4cpp_1_1fileappender.html
字号:
<p>Closes the logfile. <p><p>Implements <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a3">log4cpp::AppenderSkeleton</a>. </td> </tr></table><a class="anchor" name="a6" doxytag="log4cpp::FileAppender::getAppend"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool log4cpp::FileAppender::getAppend </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the value of the 'append' option. <p> </td> </tr></table><a class="anchor" name="a8" doxytag="log4cpp::FileAppender::getMode"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">mode_t log4cpp::FileAppender::getMode </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the file open mode. <p> </td> </tr></table><a class="anchor" name="a3" doxytag="log4cpp::FileAppender::reopen"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool log4cpp::FileAppender::reopen </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Reopens the logfile. <p>This can be useful for logfiles that are rotated externally, e.g. by logrotate. This method is a NOOP for FileAppenders that have been constructed with a file descriptor. <dl compact><dt><b>Returns:</b></dt><dd>true if the reopen succeeded. </dd></dl><p>Reimplemented from <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a2">log4cpp::AppenderSkeleton</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="log4cpp::FileAppender::setAppend"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void log4cpp::FileAppender::setAppend </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>append</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the append vs truncate flag. <p>NB. currently the <a class="el" href="classlog4cpp_1_1FileAppender.html">FileAppender</a> opens the logfile in the constructor. Therefore this method is too late to influence the first file opening. We'll need something similar to log4j's activateOptions(). <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>append</em> </td><td>false to truncate, true to append </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="a7" doxytag="log4cpp::FileAppender::setMode"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void log4cpp::FileAppender::setMode </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">mode_t </td> <td class="mdname1" valign="top" nowrap> <em>mode</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the file open mode. <p> </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="p1" doxytag="log4cpp::FileAppender::_fd"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int <a class="el" href="classlog4cpp_1_1FileAppender.html#p1">log4cpp::FileAppender::_fd</a><code> [protected]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="p0" doxytag="log4cpp::FileAppender::_fileName"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">const std::string <a class="el" href="classlog4cpp_1_1FileAppender.html#p0">log4cpp::FileAppender::_fileName</a><code> [protected]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="p2" doxytag="log4cpp::FileAppender::_flags"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int <a class="el" href="classlog4cpp_1_1FileAppender.html#p2">log4cpp::FileAppender::_flags</a><code> [protected]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="p3" doxytag="log4cpp::FileAppender::_mode"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">mode_t <a class="el" href="classlog4cpp_1_1FileAppender.html#p3">log4cpp::FileAppender::_mode</a><code> [protected]</code> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="FileAppender_8hh-source.html">FileAppender.hh</a><li><a class="el" href="FileAppender_8cpp.html">FileAppender.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:12:17 2005 for log4cpp by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -