📄 classlog4cpp_1_1propertyconfiguratorimpl.html
字号:
</tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="b1" doxytag="log4cpp::PropertyConfiguratorImpl::getCategories"></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::PropertyConfiguratorImpl::getCategories </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::vector< std::string > & </td> <td class="mdname1" valign="top" nowrap> <em>categories</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Get the categories contained within the map of properties. <p>This simply extracts the categories from the map. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>categories</em> </td><td>Reference to a list which is to receive the list of categories. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="b2" doxytag="log4cpp::PropertyConfiguratorImpl::instantiateAllAppenders"></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::PropertyConfiguratorImpl::instantiateAllAppenders </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> throw (<a class="el" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</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="b3" doxytag="log4cpp::PropertyConfiguratorImpl::instantiateAppender"></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"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * log4cpp::PropertyConfiguratorImpl::instantiateAppender </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>name</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Intantiate and configure the appender referred to by the given name. <p>This method searches the map to find all configuration parameters for the appender, and adds the appender to the given category. This isn't very general in the sense that it will need to be modified for each type of appender and layout. A more general solution would be to define an "options" interface for each appender and layout, so that we can simply call this method with a list of options instead of needing to know what is or is not available. This would also require some generic way of instantiating an object for which we have no knowledge. An "AppenderFactory" could be used which maps the given type to an actual object class registered with the factory (?? is this possible?). <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>String containing the name of the type of appender to be instantiated. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="b4" doxytag="log4cpp::PropertyConfiguratorImpl::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">void log4cpp::PropertyConfiguratorImpl::setLayout </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td> <td class="mdname" nowrap> <em>appender</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const std::string & </td> <td class="mdname" nowrap> <em>name</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Method for instantiating and configuring the layouts associated with each 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>appender</em> </td><td><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> to which we are setting this layout. </td></tr> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Name in the properties of this appender. </td></tr> </table></dl> </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="p1" doxytag="log4cpp::PropertyConfiguratorImpl::_allAppenders"></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"><a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#w0">AppenderMap</a> <a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#p1">log4cpp::PropertyConfiguratorImpl::_allAppenders</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::PropertyConfiguratorImpl::_properties"></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"><a class="el" href="classlog4cpp_1_1Properties.html">Properties</a> <a class="el" href="classlog4cpp_1_1PropertyConfiguratorImpl.html#p0">log4cpp::PropertyConfiguratorImpl::_properties</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="PropertyConfiguratorImpl_8hh-source.html">PropertyConfiguratorImpl.hh</a><li><a class="el" href="PropertyConfiguratorImpl_8cpp.html">PropertyConfiguratorImpl.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:13:21 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 + -