📄 classlog4cpp_1_1appender.html
字号:
</td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the <a class="el" href="classlog4cpp_1_1Filter.html">Filter</a> for this appender. <p><dl compact><dt><b>Returns:</b></dt><dd>the filter, or NULL if no filter has been set. </dd></dl><p>Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a9">log4cpp::AppenderSkeleton</a>. </td> </tr></table><a class="anchor" name="a6" doxytag="log4cpp::Appender::getName"></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& log4cpp::Appender::getName </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> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the name of this appender. <p>The name identifies the appender. <dl compact><dt><b>Returns:</b></dt><dd>the name of the appender. </dd></dl> </td> </tr></table><a class="anchor" name="a8" doxytag="log4cpp::Appender::getThreshold"></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">virtual <a class="el" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> log4cpp::Appender::getThreshold </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> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the threshold priority of this <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a>. <p><dl compact><dt><b>Returns:</b></dt><dd>the threshold </dd></dl><p>Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a7">log4cpp::AppenderSkeleton</a>. </td> </tr></table><a class="anchor" name="a2" doxytag="log4cpp::Appender::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">virtual bool log4cpp::Appender::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> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Reopens the output destination of this <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a>, e.g. <p>the logfile or TCP socket. <dl compact><dt><b>Returns:</b></dt><dd>false if an error occured during reopening, true otherwise. </dd></dl><p>Implemented in <a class="el" href="classlog4cpp_1_1AbortAppender.html#a2">log4cpp::AbortAppender</a>, <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a2">log4cpp::AppenderSkeleton</a>, <a class="el" href="classlog4cpp_1_1FileAppender.html#a3">log4cpp::FileAppender</a>, <a class="el" href="classlog4cpp_1_1IdsaAppender.html#a2">log4cpp::IdsaAppender</a>, <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#a2">log4cpp::NTEventLogAppender</a>, <a class="el" href="classlog4cpp_1_1OstreamAppender.html#a2">log4cpp::OstreamAppender</a>, <a class="el" href="classlog4cpp_1_1RemoteSyslogAppender.html#a2">log4cpp::RemoteSyslogAppender</a>, <a class="el" href="classlog4cpp_1_1StringQueueAppender.html#a2">log4cpp::StringQueueAppender</a>, and <a class="el" href="classlog4cpp_1_1SyslogAppender.html#a2">log4cpp::SyslogAppender</a>. </td> </tr></table><a class="anchor" name="e1" doxytag="log4cpp::Appender::reopenAll"></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::Appender::reopenAll </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> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Call <a class="el" href="classlog4cpp_1_1Appender.html#a2">reopen()</a> on all existing Appenders. <p><dl compact><dt><b>Returns:</b></dt><dd>true if all Appenders returned true on their <a class="el" href="classlog4cpp_1_1Appender.html#a2">reopen()</a> call. </dd></dl> </td> </tr></table><a class="anchor" name="a4" doxytag="log4cpp::Appender::requiresLayout"></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">virtual bool log4cpp::Appender::requiresLayout </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> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Check if the appender uses a layout. <p><dl compact><dt><b>Returns:</b></dt><dd>true if the appender implementation requires a layout. </dd></dl><p>Implemented in <a class="el" href="classlog4cpp_1_1AbortAppender.html#a4">log4cpp::AbortAppender</a>, <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a4">log4cpp::AppenderSkeleton</a>, <a class="el" href="classlog4cpp_1_1IdsaAppender.html#a4">log4cpp::IdsaAppender</a>, <a class="el" href="classlog4cpp_1_1LayoutAppender.html#a2">log4cpp::LayoutAppender</a>, and <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#a4">log4cpp::NTEventLogAppender</a>. </td> </tr></table><a class="anchor" name="a9" doxytag="log4cpp::Appender::setFilter"></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">virtual void log4cpp::Appender::setFilter </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classlog4cpp_1_1Filter.html">Filter</a> * </td> <td class="mdname1" valign="top" nowrap> <em>filter</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set a <a class="el" href="classlog4cpp_1_1Filter.html">Filter</a> for this appender. <p><p>Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a8">log4cpp::AppenderSkeleton</a>. </td> </tr></table><a class="anchor" name="a5" doxytag="log4cpp::Appender::setLayout"></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">virtual void log4cpp::Appender::setLayout </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classlog4cpp_1_1Layout.html">Layout</a> * </td> <td class="mdname1" valign="top" nowrap> <em>layout</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set the <a class="el" href="classlog4cpp_1_1Layout.html">Layout</a> for this appender. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>layout</em> </td><td>The layout to use. </td></tr> </table></dl><p>Implemented in <a class="el" href="classlog4cpp_1_1AbortAppender.html#a5">log4cpp::AbortAppender</a>, <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a5">log4cpp::AppenderSkeleton</a>, <a class="el" href="classlog4cpp_1_1IdsaAppender.html#a5">log4cpp::IdsaAppender</a>, <a class="el" href="classlog4cpp_1_1LayoutAppender.html#a3">log4cpp::LayoutAppender</a>, and <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#a5">log4cpp::NTEventLogAppender</a>. </td> </tr></table><a class="anchor" name="a7" doxytag="log4cpp::Appender::setThreshold"></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">virtual void log4cpp::Appender::setThreshold </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> </td> <td class="mdname1" valign="top" nowrap> <em>priority</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [pure virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set the threshold priority of this <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a>. <p>The <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> will not appender LoggingEvents with a priority lower than the threshold. Use <a class="el" href="classlog4cpp_1_1Priority.html#w11w10">Priority::NOTSET</a> to disable threshold checking. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>priority</em> </td><td>The priority to set. </td></tr> </table></dl><p>Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#a6">log4cpp::AppenderSkeleton</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="Appender_8hh-source.html">Appender.hh</a><li><a class="el" href="Appender_8cpp.html">Appender.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:12:06 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 + -