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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
|
<!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::Priority 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_1Priority.html">Priority</a></div>
<h1>log4cpp::Priority Class Reference</h1><!-- doxytag: class="log4cpp::Priority" -->The <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> class provides importance levels with which one can categorize log messages.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="Priority_8hh-source.html">Priority.hh</a>></code>
<p>
<a href="classlog4cpp_1_1Priority-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af">PriorityLevel</a> { <br>
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af6a3724073818ca3ba3fba1392a7bd0fe">EMERG</a> = 0,
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af1dae0224ebde51778073e7ba502a7510">FATAL</a> = 0,
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af972739ec54e849f882cf52c134d82eb7">ALERT</a> = 100,
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af2a17831f5d9979da0dc44cd778b4eeff">CRIT</a> = 200,
<br>
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afc18e3d423b0d2eaaa790344b672acc60">ERROR</a> = 300,
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afa5f201ad98003369dfbcf6a7dcc9b166">WARN</a> = 400,
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afdfb1498a2aaab7c1dd312ed3a4e65efd">NOTICE</a> = 500,
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af72bbbc5d56f3e830c086fe0d955b97e3">INFO</a> = 600,
<br>
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af5ea0b81069b260ca2c6134a843887974">DEBUG</a> = 700,
<a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">NOTSET</a> = 800
<br>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Predefined Levels of Priorities. <a href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Value</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The type of <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> Values. <a href="#19c2e47a94a531d3028f7c545671ff72"></a><br></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 const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#a9f79d671af8ba8bc1227472772ad711">getPriorityName</a> (int priority) throw ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name of the given priority value. <a href="#a9f79d671af8ba8bc1227472772ad711"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Value</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#1efc998047aafb6bc2ebf683b4e25597">getPriorityValue</a> (const std::string &priorityName) throw (std::invalid_argument)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the value of the given priority name. <a href="#1efc998047aafb6bc2ebf683b4e25597"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const int </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#80a160e15c02956d96f23041344e42a0">MESSAGE_SIZE</a> = 8</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> class provides importance levels with which one can categorize log messages.
<p>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="19c2e47a94a531d3028f7c545671ff72"></a><!-- doxytag: member="log4cpp::Priority::Value" ref="19c2e47a94a531d3028f7c545671ff72" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef int <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">log4cpp::Priority::Value</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The type of <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> Values.
<p>
</div>
</div><p>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af"></a><!-- doxytag: member="log4cpp::Priority::PriorityLevel" ref="e1b1901a7b2bea8190b286684eecc1af" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af">log4cpp::Priority::PriorityLevel</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Predefined Levels of Priorities.
<p>
These correspond to the priority levels used by syslog(3). <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af6a3724073818ca3ba3fba1392a7bd0fe"></a><!-- doxytag: member="EMERG" ref="e1b1901a7b2bea8190b286684eecc1af6a3724073818ca3ba3fba1392a7bd0fe" args="" -->EMERG</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af1dae0224ebde51778073e7ba502a7510"></a><!-- doxytag: member="FATAL" ref="e1b1901a7b2bea8190b286684eecc1af1dae0224ebde51778073e7ba502a7510" args="" -->FATAL</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af972739ec54e849f882cf52c134d82eb7"></a><!-- doxytag: member="ALERT" ref="e1b1901a7b2bea8190b286684eecc1af972739ec54e849f882cf52c134d82eb7" args="" -->ALERT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af2a17831f5d9979da0dc44cd778b4eeff"></a><!-- doxytag: member="CRIT" ref="e1b1901a7b2bea8190b286684eecc1af2a17831f5d9979da0dc44cd778b4eeff" args="" -->CRIT</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1afc18e3d423b0d2eaaa790344b672acc60"></a><!-- doxytag: member="ERROR" ref="e1b1901a7b2bea8190b286684eecc1afc18e3d423b0d2eaaa790344b672acc60" args="" -->ERROR</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1afa5f201ad98003369dfbcf6a7dcc9b166"></a><!-- doxytag: member="WARN" ref="e1b1901a7b2bea8190b286684eecc1afa5f201ad98003369dfbcf6a7dcc9b166" args="" -->WARN</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1afdfb1498a2aaab7c1dd312ed3a4e65efd"></a><!-- doxytag: member="NOTICE" ref="e1b1901a7b2bea8190b286684eecc1afdfb1498a2aaab7c1dd312ed3a4e65efd" args="" -->NOTICE</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af72bbbc5d56f3e830c086fe0d955b97e3"></a><!-- doxytag: member="INFO" ref="e1b1901a7b2bea8190b286684eecc1af72bbbc5d56f3e830c086fe0d955b97e3" args="" -->INFO</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af5ea0b81069b260ca2c6134a843887974"></a><!-- doxytag: member="DEBUG" ref="e1b1901a7b2bea8190b286684eecc1af5ea0b81069b260ca2c6134a843887974" args="" -->DEBUG</em> </td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f"></a><!-- doxytag: member="NOTSET" ref="e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f" args="" -->NOTSET</em> </td><td>
</td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a9f79d671af8ba8bc1227472772ad711"></a><!-- doxytag: member="log4cpp::Priority::getPriorityName" ref="a9f79d671af8ba8bc1227472772ad711" args="(int priority)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::string & log4cpp::Priority::getPriorityName </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>priority</em> </td>
<td> ) </td>
<td width="100%"> throw ()<code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the name of the given priority value.
<p>
Currently, if the value is not one of the PriorityLevel values, the method returns the name of the largest priority smaller the given value. <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 numeric value of the priority. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a string representing the name of the priority. </dd></dl>
</div>
</div><p>
<a class="anchor" name="1efc998047aafb6bc2ebf683b4e25597"></a><!-- doxytag: member="log4cpp::Priority::getPriorityValue" ref="1efc998047aafb6bc2ebf683b4e25597" args="(const std::string &priorityName)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> log4cpp::Priority::getPriorityValue </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>priorityName</em> </td>
<td> ) </td>
<td width="100%"> throw (std::invalid_argument)<code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the value of the given priority name.
<p>
This can be either one of EMERG ... NOTSET or a decimal string representation of the value, e.g. '700' for DEBUG. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>priorityName</em> </td><td>the string containing the the of the priority </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the value corresponding with the priority name </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>std::invalid_argument</em> </td><td>if the priorityName does not correspond with a known <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> name or a number </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="80a160e15c02956d96f23041344e42a0"></a><!-- doxytag: member="log4cpp::Priority::MESSAGE_SIZE" ref="80a160e15c02956d96f23041344e42a0" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const int <a class="el" href="classlog4cpp_1_1Priority.html#80a160e15c02956d96f23041344e42a0">log4cpp::Priority::MESSAGE_SIZE</a> = 8<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="Priority_8hh-source.html">Priority.hh</a><li><a class="el" href="Priority_8cpp.html">Priority.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>
|