📄 classlog4cpp_1_1priority.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::Priority 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_1Priority.html">Priority</a></div><h1>log4cpp::Priority Class Reference</h1>The <a class="el" href="classlog4cpp_1_1Priority.html">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">typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#w0">Value</a></td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">The type of <a class="el" href="classlog4cpp_1_1Priority.html">Priority</a> Values. <a href="#w0"></a><br></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#w11">PriorityLevel</a> { <br> <a class="el" href="classlog4cpp_1_1Priority.html#w11w1">EMERG</a> = 0, <a class="el" href="classlog4cpp_1_1Priority.html#w11w2">FATAL</a> = 0, <a class="el" href="classlog4cpp_1_1Priority.html#w11w3">ALERT</a> = 100, <a class="el" href="classlog4cpp_1_1Priority.html#w11w4">CRIT</a> = 200, <br> <a class="el" href="classlog4cpp_1_1Priority.html#w11w5">ERROR</a> = 300, <a class="el" href="classlog4cpp_1_1Priority.html#w11w6">WARN</a> = 400, <a class="el" href="classlog4cpp_1_1Priority.html#w11w7">NOTICE</a> = 500, <a class="el" href="classlog4cpp_1_1Priority.html#w11w8">INFO</a> = 600, <br> <a class="el" href="classlog4cpp_1_1Priority.html#w11w9">DEBUG</a> = 700, <a class="el" href="classlog4cpp_1_1Priority.html#w11w10">NOTSET</a> = 800<br> }</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Predefined Levels of Priorities. <a href="classlog4cpp_1_1Priority.html#w11">More...</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#e0">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="#e0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classlog4cpp_1_1Priority.html#w0">Value</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Priority.html#e1">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="#e1"></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#s0">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">Priority</a> class provides importance levels with which one can categorize log messages. <p><hr><h2>Member Typedef Documentation</h2><a class="anchor" name="w0" doxytag="log4cpp::Priority::Value"></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">typedef int <a class="el" href="classlog4cpp_1_1Priority.html#w0">log4cpp::Priority::Value</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The type of <a class="el" href="classlog4cpp_1_1Priority.html">Priority</a> Values. <p> </td> </tr></table><hr><h2>Member Enumeration Documentation</h2><a class="anchor" name="w11" doxytag="log4cpp::Priority::PriorityLevel"></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">enum <a class="el" href="classlog4cpp_1_1Priority.html#w11">log4cpp::Priority::PriorityLevel</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Predefined Levels of Priorities. <p>These correspond to the priority levels used by syslog(3). <dl compact><dt><b>Enumeration values: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em><a class="anchor" name="w11w1" doxytag="EMERG"></a>EMERG</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w2" doxytag="FATAL"></a>FATAL</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w3" doxytag="ALERT"></a>ALERT</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w4" doxytag="CRIT"></a>CRIT</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w5" doxytag="ERROR"></a>ERROR</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w6" doxytag="WARN"></a>WARN</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w7" doxytag="NOTICE"></a>NOTICE</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w8" doxytag="INFO"></a>INFO</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w9" doxytag="DEBUG"></a>DEBUG</em> </td><td></td></tr><tr><td valign="top"><em><a class="anchor" name="w11w10" doxytag="NOTSET"></a>NOTSET</em> </td><td></td></tr></table></dl> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="e0" doxytag="log4cpp::Priority::getPriorityName"></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">const std::string & log4cpp::Priority::getPriorityName </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>priority</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> throw ()<code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><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 compact><dt><b>Returns:</b></dt><dd>a string representing the name of the priority. </dd></dl> </td> </tr></table><a class="anchor" name="e1" doxytag="log4cpp::Priority::getPriorityValue"></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_1Priority.html#w0">Priority::Value</a> log4cpp::Priority::getPriorityValue </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>priorityName</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> throw (std::invalid_argument)<code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><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 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">Priority</a> name or a number </td></tr> </table></dl> </td> </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="s0" doxytag="log4cpp::Priority::MESSAGE_SIZE"></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">const int <a class="el" href="classlog4cpp_1_1Priority.html#s0">log4cpp::Priority::MESSAGE_SIZE</a> = 8<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="Priority_8hh-source.html">Priority.hh</a><li><a class="el" href="Priority_8cpp.html">Priority.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 + -