📄 classlog4cpp_1_1propertyconfigurator.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>log4cpp: log4cpp::PropertyConfigurator Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><div class="nav"><a class="el" href="namespacelog4cpp.html">log4cpp</a>::<a class="el" href="classlog4cpp_1_1PropertyConfigurator.html">PropertyConfigurator</a></div><h1>log4cpp::PropertyConfigurator Class Reference</h1>Property configurator will read a config file using the same (or similar) format to the config file used by log4j. <a href="#_details">More...</a><p><code>#include <<a class="el" href="PropertyConfigurator_8hh-source.html">PropertyConfigurator.hh</a>></code><p><a href="classlog4cpp_1_1PropertyConfigurator-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1PropertyConfigurator.html#e0">configure</a> (const std::string &initFileName) throw (ConfigureFailure)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Property configurator will read a config file using the same (or similar) format to the config file used by log4j. <p>This file is in a standard Java "properties" file format. <p>Example:<br> <pre> # a simple test config</pre><p><pre> log4j.rootCategory=DEBUG, rootAppender log4j.category.sub1=A1 log4j.category.sub2=INFO log4j.category.sub1.sub2=ERROR, A2</pre><p><pre> log4j.appender.rootAppender=org.apache.log4j.ConsoleAppender log4j.appender.rootAppender.layout=org.apache.log4j.BasicLayout</pre><p><pre> log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.fileName=A1.log log4j.appender.A1.layout=org.apache.log4j.BasicLayout</pre><p><pre> log4j.appender.A2=org.apache.log4j.ConsoleAppender log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=The message %m at time %d%n </pre><p><dl compact><dt><b>Since:</b></dt><dd>0.3.2 </dd></dl><p><hr><h2>Member Function Documentation</h2><a class="anchor" name="e0" doxytag="log4cpp::PropertyConfigurator::configure"></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::PropertyConfigurator::configure </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>initFileName</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> throw (<a class="el" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>)<code> [static]</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="PropertyConfigurator_8hh-source.html">PropertyConfigurator.hh</a><li><a class="el" href="PropertyConfigurator_8cpp.html">PropertyConfigurator.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:12:37 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 + -