Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 5fc82cd2dfd40b1b8acca39dd2860281 > files > 235

log4cpp-1.0-4.fc12.i686.rpm

<!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="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespacelog4cpp.html">log4cpp</a>::<a class="el" href="classlog4cpp_1_1Priority.html">Priority</a>
  </div>
</div>
<div class="contents">
<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 &lt;<a class="el" href="Priority_8hh_source.html">Priority.hh</a>&gt;</code>
<p>

<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 &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1af">PriorityLevel</a> { <br>
&nbsp;&nbsp;<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>
&nbsp;&nbsp;<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>
&nbsp;&nbsp;<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">&nbsp;</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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Value</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</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 &amp;&nbsp;</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">&nbsp;</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>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#1efc998047aafb6bc2ebf683b4e25597">getPriorityValue</a> (const std::string &amp;priorityName)  throw (std::invalid_argument)</td></tr>

<tr><td class="mdescLeft">&nbsp;</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&nbsp;</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. <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>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af1dae0224ebde51778073e7ba502a7510"></a><!-- doxytag: member="FATAL" ref="e1b1901a7b2bea8190b286684eecc1af1dae0224ebde51778073e7ba502a7510" args="" -->FATAL</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af972739ec54e849f882cf52c134d82eb7"></a><!-- doxytag: member="ALERT" ref="e1b1901a7b2bea8190b286684eecc1af972739ec54e849f882cf52c134d82eb7" args="" -->ALERT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af2a17831f5d9979da0dc44cd778b4eeff"></a><!-- doxytag: member="CRIT" ref="e1b1901a7b2bea8190b286684eecc1af2a17831f5d9979da0dc44cd778b4eeff" args="" -->CRIT</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1afc18e3d423b0d2eaaa790344b672acc60"></a><!-- doxytag: member="ERROR" ref="e1b1901a7b2bea8190b286684eecc1afc18e3d423b0d2eaaa790344b672acc60" args="" -->ERROR</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1afa5f201ad98003369dfbcf6a7dcc9b166"></a><!-- doxytag: member="WARN" ref="e1b1901a7b2bea8190b286684eecc1afa5f201ad98003369dfbcf6a7dcc9b166" args="" -->WARN</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1afdfb1498a2aaab7c1dd312ed3a4e65efd"></a><!-- doxytag: member="NOTICE" ref="e1b1901a7b2bea8190b286684eecc1afdfb1498a2aaab7c1dd312ed3a4e65efd" args="" -->NOTICE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af72bbbc5d56f3e830c086fe0d955b97e3"></a><!-- doxytag: member="INFO" ref="e1b1901a7b2bea8190b286684eecc1af72bbbc5d56f3e830c086fe0d955b97e3" args="" -->INFO</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1af5ea0b81069b260ca2c6134a843887974"></a><!-- doxytag: member="DEBUG" ref="e1b1901a7b2bea8190b286684eecc1af5ea0b81069b260ca2c6134a843887974" args="" -->DEBUG</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f"></a><!-- doxytag: member="NOTSET" ref="e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f" args="" -->NOTSET</em>&nbsp;</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 &amp; log4cpp::Priority::getPriorityName           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>priority</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td>  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>&nbsp;</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 &amp;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 &amp;&nbsp;</td>
          <td class="paramname"> <em>priorityName</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td>  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>&nbsp;</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>&nbsp;</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>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 26 19:34:50 2009 for log4cpp by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>