1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>log4cpp: log4cpp::PropertyConfigurator Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</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><!-- doxytag: class="log4cpp::PropertyConfigurator" -->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#7368bf3ded0761a934beb3b786dae558">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 class="since" compact><dt><b>Since:</b></dt><dd>0.3.2 </dd></dl>
<p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7368bf3ded0761a934beb3b786dae558"></a><!-- doxytag: member="log4cpp::PropertyConfigurator::configure" ref="7368bf3ded0761a934beb3b786dae558" args="(const std::string &initFileName)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::PropertyConfigurator::configure </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>initFileName</em> </td>
<td> ) </td>
<td width="100%"> throw (<a class="el" href="classlog4cpp_1_1ConfigureFailure.html">ConfigureFailure</a>)<code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<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="text-align: right;"><small>Generated on Mon Sep 3 11:55:06 2007 for log4cpp by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>
|