<!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::Category 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 Page</span></a></li> <li><a href="pages.html"><span>Related 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 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="navpath"><a class="el" href="namespacelog4cpp.html">log4cpp</a>::<a class="el" href="classlog4cpp_1_1Category.html">Category</a> </div> </div> <div class="contents"> <h1>log4cpp::Category Class Reference</h1><!-- doxytag: class="log4cpp::Category" -->This is the central class in the log4j package. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="Category_8hh_source.html">Category.hh</a>></code> <p> <div class="dynheader"> Inheritance diagram for log4cpp::Category:</div> <div class="dynsection"> <p><center><img src="classlog4cpp_1_1Category.png" usemap="#log4cpp::Category_map" border="0" alt=""></center> <map name="log4cpp::Category_map"> <area href="classlog4cpp_1_1FixedContextCategory.html" alt="log4cpp::FixedContextCategory" shape="rect" coords="0,56,188,80"> </map> </div> <p> <a href="classlog4cpp_1_1Category-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 Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#3952d5ff84aabe2cd8c2825fbce65350">~Category</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#3952d5ff84aabe2cd8c2825fbce65350"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#e151a14d9c6884c0d6f593cb06a4acb2">getName</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the category name. <a href="#e151a14d9c6884c0d6f593cb06a4acb2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#51424bad2e31a7c5786c2c03015ac5b4">setPriority</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority) throw (std::invalid_argument)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the priority of this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#51424bad2e31a7c5786c2c03015ac5b4"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#fa37d2741567cc909ddd0a2378e8576f">getPriority</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, if any, for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#fa37d2741567cc909ddd0a2378e8576f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#8cdbbc14ee2a24d0815d5f8558ee9da9">getChainedPriority</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Starting from this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, search the category hierarchy for a set priority and return it. <a href="#8cdbbc14ee2a24d0815d5f8558ee9da9"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#257d630620c054314daad09bba2f0a02">isPriorityEnabled</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority) const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the chained priority of the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> is equal to or higher than given priority. <a href="#257d630620c054314daad09bba2f0a02"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#fe22130ca03516ea3f9331446e2b0d5d">addAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender) throw (std::invalid_argument)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#fe22130ca03516ea3f9331446e2b0d5d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#f6e26395fb0fdcd842fa9b8d32dbaace">addAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> &appender)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#f6e26395fb0fdcd842fa9b8d32dbaace"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#fc5a373da3c106e4da78822f99560075">setAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#fc5a373da3c106e4da78822f99560075"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#d9820b0eb831c37832c850ed6110f124">setAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> &appender)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#d9820b0eb831c37832c850ed6110f124"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#8d544f5f1aaf502802a6c5bb7912cfd2">getAppender</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the first <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if no <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> has been set. <a href="#8d544f5f1aaf502802a6c5bb7912cfd2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#badce100c630726cfb16d2c27f2581f4">getAppender</a> (const std::string &name) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the specified <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> is not attached to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#badce100c630726cfb16d2c27f2581f4"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="namespacelog4cpp.html#33a2e97cb897835dadbe401c6f9d658d">AppenderSet</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#9b1949eec3c2344a0a24f3cc16961af6">getAllAppenders</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the set of Appenders currently attached to this Catogory. <a href="#9b1949eec3c2344a0a24f3cc16961af6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#aa875c937496cbae47305505658cc13d">removeAllAppenders</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Removes all appenders for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#aa875c937496cbae47305505658cc13d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#791368f003a7a473ae70cfbbeef08512">removeAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Removes specified appender for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#791368f003a7a473ae70cfbbeef08512"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#322ca57d9dfd5291f7be3fb9f1d9076a">ownsAppender</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> owns the first <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> in its <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> set. <a href="#322ca57d9dfd5291f7be3fb9f1d9076a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#2ff9f28b04dafc13fd08316fd5a27f19">ownsAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender) const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> owns the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <a href="#2ff9f28b04dafc13fd08316fd5a27f19"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#c07af8f9e1f8342dce0a437c6ad9764f">callAppenders</a> (const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> &event) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Call the appenders in the hierarchy starting at <code>this</code>. <a href="#c07af8f9e1f8342dce0a437c6ad9764f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#604ed38018f864308c329d043847c5b3">setAdditivity</a> (bool additivity)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance. <a href="#604ed38018f864308c329d043847c5b3"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#8f3194a44eec707cff9282590d4bf537">getAdditivity</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance. <a href="#8f3194a44eec707cff9282590d4bf537"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Category.html">Category</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#473a1bdd762ba53180c6696ad66b28a6">getParent</a> () throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the parent category of this category, or NULL if the category is the root category. <a href="#473a1bdd762ba53180c6696ad66b28a6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const <a class="el" href="classlog4cpp_1_1Category.html">Category</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#f8334e920cff9d71c226ed28bdb12cbb">getParent</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the parent category of this category, or NULL if the category is the root category. <a href="#f8334e920cff9d71c226ed28bdb12cbb"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#763caceab3981c2e06811c29655b361b">log</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority, const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with the specified priority. <a href="#763caceab3981c2e06811c29655b361b"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#c0dca9fa16eb2687d624929c8276d123">log</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority, const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with the specified priority. <a href="#c0dca9fa16eb2687d624929c8276d123"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#200f068379f6533e305afd903ee5a311">logva</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority, const char *stringFormat, va_list va) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with the specified priority. <a href="#200f068379f6533e305afd903ee5a311"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#afa1ca0c9d57f9f87eae8628e89c5950">debug</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with debug priority. <a href="#afa1ca0c9d57f9f87eae8628e89c5950"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#6df5f921ea93cd1ecfb2ef90336c472e">debug</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with debug priority. <a href="#6df5f921ea93cd1ecfb2ef90336c472e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#b5da3d7f8c2fb714b5548fa65f07a661">isDebugEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority DEBUG. <a href="#b5da3d7f8c2fb714b5548fa65f07a661"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#fac27826bcfb981b5ddd9395abfe7248">debugStream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority DEBUG. <a href="#fac27826bcfb981b5ddd9395abfe7248"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#d218a5e279fc9b15a076bf62503f37b4">info</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with info priority. <a href="#d218a5e279fc9b15a076bf62503f37b4"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#a98cd75a4e645682992a92b34876fbae">info</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with info priority. <a href="#a98cd75a4e645682992a92b34876fbae"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#9c07515c4056a3bac19754c263f67d41">isInfoEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority INFO. <a href="#9c07515c4056a3bac19754c263f67d41"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#752186a865f70d3e2d9683be95875029">infoStream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority INFO. <a href="#752186a865f70d3e2d9683be95875029"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#5a4ba8063d108e275affa4aca5aec4ef">notice</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with notice priority. <a href="#5a4ba8063d108e275affa4aca5aec4ef"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#cf91d597c6a676fe697060e62ae806c4">notice</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with notice priority. <a href="#cf91d597c6a676fe697060e62ae806c4"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#27e291604a46fb814ffc9145d0549806">isNoticeEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority NOTICE. <a href="#27e291604a46fb814ffc9145d0549806"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#6f0ece985281625a21d7d941b3683274">noticeStream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority NOTICE. <a href="#6f0ece985281625a21d7d941b3683274"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#9c372f41858234fe5ab0cfe94cfdb94a">warn</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with warn priority. <a href="#9c372f41858234fe5ab0cfe94cfdb94a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#0f5bc1528f7e8947b5dc670a0f60af66">warn</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with warn priority. <a href="#0f5bc1528f7e8947b5dc670a0f60af66"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#c6d8d0e26d6b2a0b06397ae282e9479c">isWarnEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority WARN. <a href="#c6d8d0e26d6b2a0b06397ae282e9479c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#c283548b14f3897e20f85b83f6ce9e35">warnStream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority WARN. <a href="#c283548b14f3897e20f85b83f6ce9e35"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#90d7771a3113219532878f1fea554afe">error</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with error priority. <a href="#90d7771a3113219532878f1fea554afe"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#1c8145cee16f46c3ae456d101ad7d95a">error</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with error priority. <a href="#1c8145cee16f46c3ae456d101ad7d95a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#36e49c5fd3232cc38589262b0552a9d9">isErrorEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority ERROR. <a href="#36e49c5fd3232cc38589262b0552a9d9"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#f65fd83dd2808f86950d66cf66176520">errorStream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority ERROR. <a href="#f65fd83dd2808f86950d66cf66176520"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#cf854aca1676ede517914bf5185fc36d">crit</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with crit priority. <a href="#cf854aca1676ede517914bf5185fc36d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#d2c42de9c88e4a9c176c1eda7b5258a5">crit</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with crit priority. <a href="#d2c42de9c88e4a9c176c1eda7b5258a5"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#7e7521c434a9ce68d2b995e3b405b01d">isCritEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority CRIT. <a href="#7e7521c434a9ce68d2b995e3b405b01d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#31d8ba46b15a2ca6ac7281ac44302e8e">critStream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority CRIT. <a href="#31d8ba46b15a2ca6ac7281ac44302e8e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#ca8a704d6397ac3a4300966a6142460c">alert</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with alert priority. <a href="#ca8a704d6397ac3a4300966a6142460c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#8b01f91b8f9b4e2dbdd062132d748451">alert</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with alert priority. <a href="#8b01f91b8f9b4e2dbdd062132d748451"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#85946adfd9cda015cea491e1caf05718">isAlertEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority ALERT. <a href="#85946adfd9cda015cea491e1caf05718"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#50ebe1facaa40c12cc95dd6b10f6557e">alertStream</a> () throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority ALERT. <a href="#50ebe1facaa40c12cc95dd6b10f6557e"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#3663faf2ad6873c3da8cdfef5780277a">emerg</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with emerg priority. <a href="#3663faf2ad6873c3da8cdfef5780277a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#7833997324b984179542a70853ddce08">emerg</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with emerg priority. <a href="#7833997324b984179542a70853ddce08"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#148f14c76ab768f54d2137862768ee29">isEmergEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority EMERG. <a href="#148f14c76ab768f54d2137862768ee29"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#73790279fa893f1000b01b2c98894c89">emergStream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority EMERG. <a href="#73790279fa893f1000b01b2c98894c89"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#249d46ce876a4af55a25226255e626fa">fatal</a> (const char *stringFormat,...) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with fatal priority. <a href="#249d46ce876a4af55a25226255e626fa"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#1e78405eafb717121b438460ff22f452">fatal</a> (const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Log a message with fatal priority. <a href="#1e78405eafb717121b438460ff22f452"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#4c4ee870570803e12d5aafec40f6b8e8">isFatalEnabled</a> () const throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority FATAL. <a href="#4c4ee870570803e12d5aafec40f6b8e8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#9ddbaf1debae0bda23827b8b14867943">fatalStream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority FATAL. <a href="#9ddbaf1debae0bda23827b8b14867943"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#d40a8ccc9e64228a9a56f59c3062ac82">getStream</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with given <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>. <a href="#d40a8ccc9e64228a9a56f59c3062ac82"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#b745a7507e0b9925bc31f0e614f95258">operator<<</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with given <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>. <a href="#b745a7507e0b9925bc31f0e614f95258"></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 <a class="el" href="classlog4cpp_1_1Category.html">Category</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#2d81d4c56d54738afa621ac5f85efcc9">getRoot</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the root of the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> hierarchy. <a href="#2d81d4c56d54738afa621ac5f85efcc9"></a><br></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_1Category.html#dd951394d3c2e5532c046879ad836a0f">setRootPriority</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the priority of the root <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#dd951394d3c2e5532c046879ad836a0f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#37196cadca4b8b9926a18e4ce10f642d">getRootPriority</a> () throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the priority of the <code>root</code> <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <a href="#37196cadca4b8b9926a18e4ce10f642d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classlog4cpp_1_1Category.html">Category</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#4540bcda1365d8db5abe0536f272877f">getInstance</a> (const std::string &name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Instantiate a <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> with name <code>name</code>. <a href="#4540bcda1365d8db5abe0536f272877f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classlog4cpp_1_1Category.html">Category</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#d514b297e66e1ff76846391c948267ce">exists</a> (const std::string &name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">If the named category exists (in the default hierarchy) then it returns a reference to the category, otherwise it returns NULL. <a href="#d514b297e66e1ff76846391c948267ce"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static std::vector< <a class="el" href="classlog4cpp_1_1Category.html">Category</a> * > * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#c068361d7fa91537c3f1e9f3db2bdd57">getCurrentCategories</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns all the currently defined categories as a vector of <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> pointers. <a href="#c068361d7fa91537c3f1e9f3db2bdd57"></a><br></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_1Category.html#929c1316dc9ce33506a48e92b190df7b">shutdown</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">This method will remove all Appenders from Categories.XXX. <a href="#929c1316dc9ce33506a48e92b190df7b"></a><br></td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#8ebcf346b4f88ba44812c992bf53be74">Category</a> (const std::string &name, <a class="el" href="classlog4cpp_1_1Category.html">Category</a> *parent, <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority=Priority::NOTSET)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#8ebcf346b4f88ba44812c992bf53be74"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#2020a52bc0abfa16f6c2f879791ca4ef">_logUnconditionally</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority, const char *format, va_list arguments) throw ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#77265549183a4f2fc9ecea8da5aec8b4">_logUnconditionally2</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority, const std::string &message) throw ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Unconditionally log a message with the specified priority. <a href="#77265549183a4f2fc9ecea8da5aec8b4"></a><br></td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Category.html#09f128c878c5735c0802cfbf132b6b9d">HierarchyMaintainer</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> This is the central class in the log4j package. <p> One of the distintive features of log4j (and hence <a class="el" href="namespacelog4cpp.html" title="The top level namespace for all 'Log for C++' types and classes.">log4cpp</a>) are hierarchal categories and their evaluation. <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="3952d5ff84aabe2cd8c2825fbce65350"></a><!-- doxytag: member="log4cpp::Category::~Category" ref="3952d5ff84aabe2cd8c2825fbce65350" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">log4cpp::Category::~Category </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor for <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> </div> </div><p> <a class="anchor" name="8ebcf346b4f88ba44812c992bf53be74"></a><!-- doxytag: member="log4cpp::Category::Category" ref="8ebcf346b4f88ba44812c992bf53be74" args="(const std::string &name, Category *parent, Priority::Value priority=Priority::NOTSET)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">log4cpp::Category::Category </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Category.html">Category</a> * </td> <td class="paramname"> <em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em> = <code>Priority::NOTSET</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>the fully qualified name of this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> </td></tr> <tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>the parent of this parent, or NULL for the root <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> </td></tr> <tr><td valign="top"></td><td valign="top"><em>priority</em> </td><td>the priority for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. Defaults to <a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">Priority::NOTSET</a> </td></tr> </table> </dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="2020a52bc0abfa16f6c2f879791ca4ef"></a><!-- doxytag: member="log4cpp::Category::_logUnconditionally" ref="2020a52bc0abfa16f6c2f879791ca4ef" args="(Priority::Value priority, const char *format, va_list arguments)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::_logUnconditionally </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>format</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">va_list </td> <td class="paramname"> <em>arguments</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()<code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="77265549183a4f2fc9ecea8da5aec8b4"></a><!-- doxytag: member="log4cpp::Category::_logUnconditionally2" ref="77265549183a4f2fc9ecea8da5aec8b4" args="(Priority::Value priority, const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::_logUnconditionally2 </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()<code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Unconditionally log a message with the specified priority. <p> <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 priority of this log message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#abd251a7a6198fb8235defeeefa9d0ed">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="f6e26395fb0fdcd842fa9b8d32dbaace"></a><!-- doxytag: member="log4cpp::Category::addAppender" ref="f6e26395fb0fdcd842fa9b8d32dbaace" args="(Appender &appender)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::addAppender </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> & </td> <td class="paramname"> <em>appender</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Adds an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> This method does not pass ownership from the caller to the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>appender</em> </td><td>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> this category has to log to. </td></tr> </table> </dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#1e58c08c075dab8bb0957b48df6b7b92">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="fe22130ca03516ea3f9331446e2b0d5d"></a><!-- doxytag: member="log4cpp::Category::addAppender" ref="fe22130ca03516ea3f9331446e2b0d5d" args="(Appender *appender)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::addAppender </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td> <td class="paramname"> <em>appender</em> </td> <td> ) </td> <td> throw (std::invalid_argument)<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Adds an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> This method passes ownership from the caller to the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>appender</em> </td><td>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> to wich this category has to log. </td></tr> </table> </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 appender is NULL. </td></tr> </table> </dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#6f16b049334663624afabed150401669">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="8b01f91b8f9b4e2dbdd062132d748451"></a><!-- doxytag: member="log4cpp::Category::alert" ref="8b01f91b8f9b4e2dbdd062132d748451" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::alert </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with alert priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="ca8a704d6397ac3a4300966a6142460c"></a><!-- doxytag: member="log4cpp::Category::alert" ref="ca8a704d6397ac3a4300966a6142460c" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::alert </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with alert priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="50ebe1facaa40c12cc95dd6b10f6557e"></a><!-- doxytag: member="log4cpp::Category::alertStream" ref="50ebe1facaa40c12cc95dd6b10f6557e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::alertStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority ALERT. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="c07af8f9e1f8342dce0a437c6ad9764f"></a><!-- doxytag: member="log4cpp::Category::callAppenders" ref="c07af8f9e1f8342dce0a437c6ad9764f" args="(const LoggingEvent &event)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::callAppenders </td> <td>(</td> <td class="paramtype">const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> & </td> <td class="paramname"> <em>event</em> </td> <td> ) </td> <td> throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Call the appenders in the hierarchy starting at <code>this</code>. <p> If no appenders could be found, emit a warning.<p> This method always calls all the appenders inherited form the hierracy circumventing any evaluation of whether to log or not to log the particular log request.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>event</em> </td><td>the LogginEvent to log. </td></tr> </table> </dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#72e2e2486bcc823b4a4318dad4bea0df">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="d2c42de9c88e4a9c176c1eda7b5258a5"></a><!-- doxytag: member="log4cpp::Category::crit" ref="d2c42de9c88e4a9c176c1eda7b5258a5" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::crit </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with crit priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="cf854aca1676ede517914bf5185fc36d"></a><!-- doxytag: member="log4cpp::Category::crit" ref="cf854aca1676ede517914bf5185fc36d" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::crit </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with crit priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="31d8ba46b15a2ca6ac7281ac44302e8e"></a><!-- doxytag: member="log4cpp::Category::critStream" ref="31d8ba46b15a2ca6ac7281ac44302e8e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::critStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority CRIT. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="6df5f921ea93cd1ecfb2ef90336c472e"></a><!-- doxytag: member="log4cpp::Category::debug" ref="6df5f921ea93cd1ecfb2ef90336c472e" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::debug </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with debug priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="afa1ca0c9d57f9f87eae8628e89c5950"></a><!-- doxytag: member="log4cpp::Category::debug" ref="afa1ca0c9d57f9f87eae8628e89c5950" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::debug </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with debug priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="fac27826bcfb981b5ddd9395abfe7248"></a><!-- doxytag: member="log4cpp::Category::debugStream" ref="fac27826bcfb981b5ddd9395abfe7248" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::debugStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority DEBUG. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="7833997324b984179542a70853ddce08"></a><!-- doxytag: member="log4cpp::Category::emerg" ref="7833997324b984179542a70853ddce08" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::emerg </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with emerg priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="3663faf2ad6873c3da8cdfef5780277a"></a><!-- doxytag: member="log4cpp::Category::emerg" ref="3663faf2ad6873c3da8cdfef5780277a" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::emerg </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with emerg priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="73790279fa893f1000b01b2c98894c89"></a><!-- doxytag: member="log4cpp::Category::emergStream" ref="73790279fa893f1000b01b2c98894c89" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::emergStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority EMERG. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="1c8145cee16f46c3ae456d101ad7d95a"></a><!-- doxytag: member="log4cpp::Category::error" ref="1c8145cee16f46c3ae456d101ad7d95a" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::error </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with error priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="90d7771a3113219532878f1fea554afe"></a><!-- doxytag: member="log4cpp::Category::error" ref="90d7771a3113219532878f1fea554afe" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::error </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with error priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="f65fd83dd2808f86950d66cf66176520"></a><!-- doxytag: member="log4cpp::Category::errorStream" ref="f65fd83dd2808f86950d66cf66176520" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::errorStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority ERROR. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="d514b297e66e1ff76846391c948267ce"></a><!-- doxytag: member="log4cpp::Category::exists" ref="d514b297e66e1ff76846391c948267ce" args="(const std::string &name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1Category.html">Category</a> * log4cpp::Category::exists </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> If the named category exists (in the default hierarchy) then it returns a reference to the category, otherwise it returns NULL. <p> <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> </div> </div><p> <a class="anchor" name="1e78405eafb717121b438460ff22f452"></a><!-- doxytag: member="log4cpp::Category::fatal" ref="1e78405eafb717121b438460ff22f452" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::fatal </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with fatal priority. <p> NB. priority 'fatal' is equivalent to 'emerg'. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="249d46ce876a4af55a25226255e626fa"></a><!-- doxytag: member="log4cpp::Category::fatal" ref="249d46ce876a4af55a25226255e626fa" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::fatal </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with fatal priority. <p> NB. priority 'fatal' is equivalent to 'emerg'. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="9ddbaf1debae0bda23827b8b14867943"></a><!-- doxytag: member="log4cpp::Category::fatalStream" ref="9ddbaf1debae0bda23827b8b14867943" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::fatalStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority FATAL. <p> NB. priority 'fatal' is equivalent to 'emerg'. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="8f3194a44eec707cff9282590d4bf537"></a><!-- doxytag: member="log4cpp::Category::getAdditivity" ref="8f3194a44eec707cff9282590d4bf537" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::getAdditivity </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance. <p> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#b850e3c76a07845e97429c37803de623">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="9b1949eec3c2344a0a24f3cc16961af6"></a><!-- doxytag: member="log4cpp::Category::getAllAppenders" ref="9b1949eec3c2344a0a24f3cc16961af6" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="namespacelog4cpp.html#33a2e97cb897835dadbe401c6f9d658d">AppenderSet</a> log4cpp::Category::getAllAppenders </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the set of Appenders currently attached to this Catogory. <p> <dl class="since" compact><dt><b>Since:</b></dt><dd>0.3.1 </dd></dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The set of attached Appenders. </dd></dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#1de99ebcfe01ef225c474e897ce42001">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="badce100c630726cfb16d2c27f2581f4"></a><!-- doxytag: member="log4cpp::Category::getAppender" ref="badce100c630726cfb16d2c27f2581f4" args="(const std::string &name) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * log4cpp::Category::getAppender </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the specified <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> is not attached to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. </dd></dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e176d1d2680928785c4450dff2cc1be9">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="8d544f5f1aaf502802a6c5bb7912cfd2"></a><!-- doxytag: member="log4cpp::Category::getAppender" ref="8d544f5f1aaf502802a6c5bb7912cfd2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * log4cpp::Category::getAppender </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the first <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if no <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> has been set. <p> <dl class="deprecated" compact><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>use getAppender(const std::string&) </dd></dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. </dd></dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#832db0eb782015ac2f125bbc79ccada5">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="8cdbbc14ee2a24d0815d5f8558ee9da9"></a><!-- doxytag: member="log4cpp::Category::getChainedPriority" ref="8cdbbc14ee2a24d0815d5f8558ee9da9" args="() const " --> <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::Category::getChainedPriority </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Starting from this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, search the category hierarchy for a set priority and return it. <p> Otherwise, return the priority of the root category.<p> The <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> class is designed so that this method executes as quickly as possible. <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#3f2c200a3af93c8db3f8329ed24c223a">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="c068361d7fa91537c3f1e9f3db2bdd57"></a><!-- doxytag: member="log4cpp::Category::getCurrentCategories" ref="c068361d7fa91537c3f1e9f3db2bdd57" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::vector< <a class="el" href="classlog4cpp_1_1Category.html">Category</a> * > * log4cpp::Category::getCurrentCategories </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns all the currently defined categories as a vector of <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> pointers. <p> Note: this function does not pass ownership of the categories in the vector to the caller, only the ownership of the vector. However vector<Category&>* is not legal C++, so we can't follow the default ownership conventions.<p> Unlike in log4j, the root category <em>is</em> included in the returned set.<p> <dl class="since" compact><dt><b>Since:</b></dt><dd>0.3.2. Before 0.3.2 this method returned a std::set </dd></dl> </div> </div><p> <a class="anchor" name="4540bcda1365d8db5abe0536f272877f"></a><!-- doxytag: member="log4cpp::Category::getInstance" ref="4540bcda1365d8db5abe0536f272877f" args="(const std::string &name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1Category.html">Category</a> & log4cpp::Category::getInstance </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Instantiate a <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> with name <code>name</code>. <p> This method does not set priority of the category which is by default <code><a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">Priority::NOTSET</a></code>.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the category to retrieve. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="e151a14d9c6884c0d6f593cb06a4acb2"></a><!-- doxytag: member="log4cpp::Category::getName" ref="e151a14d9c6884c0d6f593cb06a4acb2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::string & log4cpp::Category::getName </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the category name. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The category name. </dd></dl> </div> </div><p> <a class="anchor" name="f8334e920cff9d71c226ed28bdb12cbb"></a><!-- doxytag: member="log4cpp::Category::getParent" ref="f8334e920cff9d71c226ed28bdb12cbb" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classlog4cpp_1_1Category.html">Category</a> * log4cpp::Category::getParent </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the parent category of this category, or NULL if the category is the root category. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the parent category. </dd></dl> </div> </div><p> <a class="anchor" name="473a1bdd762ba53180c6696ad66b28a6"></a><!-- doxytag: member="log4cpp::Category::getParent" ref="473a1bdd762ba53180c6696ad66b28a6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1Category.html">Category</a> * log4cpp::Category::getParent </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the parent category of this category, or NULL if the category is the root category. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the parent category. </dd></dl> </div> </div><p> <a class="anchor" name="fa37d2741567cc909ddd0a2378e8576f"></a><!-- doxytag: member="log4cpp::Category::getPriority" ref="fa37d2741567cc909ddd0a2378e8576f" args="() const " --> <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::Category::getPriority </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, if any, for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> - the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, can be <a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">Priority::NOTSET</a> </dd></dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#009c522a12e8b8bdc25d6e83a7ac21da">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="2d81d4c56d54738afa621ac5f85efcc9"></a><!-- doxytag: member="log4cpp::Category::getRoot" ref="2d81d4c56d54738afa621ac5f85efcc9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1Category.html">Category</a> & log4cpp::Category::getRoot </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return the root of the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> hierarchy. <p> The root category is always instantiated and available. It's name is the empty string.<p> Unlike in log4j, calling <code><a class="el" href="classlog4cpp_1_1Category.html#4540bcda1365d8db5abe0536f272877f" title="Instantiate a Category with name name.">Category.getInstance</a>("")</code> <em>does</em> retrieve the root category and not a category just under root named "". <dl class="return" compact><dt><b>Returns:</b></dt><dd>The root category </dd></dl> </div> </div><p> <a class="anchor" name="37196cadca4b8b9926a18e4ce10f642d"></a><!-- doxytag: member="log4cpp::Category::getRootPriority" ref="37196cadca4b8b9926a18e4ce10f642d" args="()" --> <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::Category::getRootPriority </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> throw ()<code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the priority of the <code>root</code> <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>the priority of the root category </dd></dl> </div> </div><p> <a class="anchor" name="d40a8ccc9e64228a9a56f59c3062ac82"></a><!-- doxytag: member="log4cpp::Category::getStream" ref="d40a8ccc9e64228a9a56f59c3062ac82" args="(Priority::Value priority)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::getStream </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with given <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>. <p> <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 <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> of the <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The requested <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="a98cd75a4e645682992a92b34876fbae"></a><!-- doxytag: member="log4cpp::Category::info" ref="a98cd75a4e645682992a92b34876fbae" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::info </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with info priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="d218a5e279fc9b15a076bf62503f37b4"></a><!-- doxytag: member="log4cpp::Category::info" ref="d218a5e279fc9b15a076bf62503f37b4" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::info </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with info priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="752186a865f70d3e2d9683be95875029"></a><!-- doxytag: member="log4cpp::Category::infoStream" ref="752186a865f70d3e2d9683be95875029" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::infoStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority INFO. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="85946adfd9cda015cea491e1caf05718"></a><!-- doxytag: member="log4cpp::Category::isAlertEnabled" ref="85946adfd9cda015cea491e1caf05718" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isAlertEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority ALERT. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="7e7521c434a9ce68d2b995e3b405b01d"></a><!-- doxytag: member="log4cpp::Category::isCritEnabled" ref="7e7521c434a9ce68d2b995e3b405b01d" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isCritEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority CRIT. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="b5da3d7f8c2fb714b5548fa65f07a661"></a><!-- doxytag: member="log4cpp::Category::isDebugEnabled" ref="b5da3d7f8c2fb714b5548fa65f07a661" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isDebugEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority DEBUG. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="148f14c76ab768f54d2137862768ee29"></a><!-- doxytag: member="log4cpp::Category::isEmergEnabled" ref="148f14c76ab768f54d2137862768ee29" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isEmergEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority EMERG. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="36e49c5fd3232cc38589262b0552a9d9"></a><!-- doxytag: member="log4cpp::Category::isErrorEnabled" ref="36e49c5fd3232cc38589262b0552a9d9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isErrorEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority ERROR. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="4c4ee870570803e12d5aafec40f6b8e8"></a><!-- doxytag: member="log4cpp::Category::isFatalEnabled" ref="4c4ee870570803e12d5aafec40f6b8e8" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isFatalEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority FATAL. <p> NB. priority 'fatal' is equivalent to 'emerg'. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="9c07515c4056a3bac19754c263f67d41"></a><!-- doxytag: member="log4cpp::Category::isInfoEnabled" ref="9c07515c4056a3bac19754c263f67d41" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isInfoEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority INFO. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="27e291604a46fb814ffc9145d0549806"></a><!-- doxytag: member="log4cpp::Category::isNoticeEnabled" ref="27e291604a46fb814ffc9145d0549806" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isNoticeEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority NOTICE. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="257d630620c054314daad09bba2f0a02"></a><!-- doxytag: member="log4cpp::Category::isPriorityEnabled" ref="257d630620c054314daad09bba2f0a02" args="(Priority::Value priority) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isPriorityEnabled </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em> </td> <td> ) </td> <td> const throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns true if the chained priority of the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> is equal to or higher than given priority. <p> <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 priority to compare with. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>whether logging is enable for this priority. </dd></dl> </div> </div><p> <a class="anchor" name="c6d8d0e26d6b2a0b06397ae282e9479c"></a><!-- doxytag: member="log4cpp::Category::isWarnEnabled" ref="c6d8d0e26d6b2a0b06397ae282e9479c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::isWarnEnabled </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log messages with priority WARN. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Whether the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> will log. </dd></dl> </div> </div><p> <a class="anchor" name="c0dca9fa16eb2687d624929c8276d123"></a><!-- doxytag: member="log4cpp::Category::log" ref="c0dca9fa16eb2687d624929c8276d123" args="(Priority::Value priority, const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::log </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with the specified priority. <p> <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 priority of this log message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="763caceab3981c2e06811c29655b361b"></a><!-- doxytag: member="log4cpp::Category::log" ref="763caceab3981c2e06811c29655b361b" args="(Priority::Value priority, const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::log </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with the specified priority. <p> <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 priority of this log message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="200f068379f6533e305afd903ee5a311"></a><!-- doxytag: member="log4cpp::Category::logva" ref="200f068379f6533e305afd903ee5a311" args="(Priority::Value priority, const char *stringFormat, va_list va)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::logva </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">va_list </td> <td class="paramname"> <em>va</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with the specified priority. <p> <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <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 priority of this log message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>va</em> </td><td>The arguments for stringFormat. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="cf91d597c6a676fe697060e62ae806c4"></a><!-- doxytag: member="log4cpp::Category::notice" ref="cf91d597c6a676fe697060e62ae806c4" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::notice </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with notice priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="5a4ba8063d108e275affa4aca5aec4ef"></a><!-- doxytag: member="log4cpp::Category::notice" ref="5a4ba8063d108e275affa4aca5aec4ef" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::notice </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with notice priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="6f0ece985281625a21d7d941b3683274"></a><!-- doxytag: member="log4cpp::Category::noticeStream" ref="6f0ece985281625a21d7d941b3683274" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::noticeStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority NOTICE. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="b745a7507e0b9925bc31f0e614f95258"></a><!-- doxytag: member="log4cpp::Category::operator<<" ref="b745a7507e0b9925bc31f0e614f95258" args="(Priority::Value priority)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::operator<< </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with given <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>. <p> <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 <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> of the <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The requested <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <a class="anchor" name="2ff9f28b04dafc13fd08316fd5a27f19"></a><!-- doxytag: member="log4cpp::Category::ownsAppender" ref="2ff9f28b04dafc13fd08316fd5a27f19" args="(Appender *appender) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool log4cpp::Category::ownsAppender </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td> <td class="paramname"> <em>appender</em> </td> <td> ) </td> <td> const throw ()<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> owns the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <p> In that case the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> destructor will delete the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#8edf487c3081510fb51a6b45bb34e3a2">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="322ca57d9dfd5291f7be3fb9f1d9076a"></a><!-- doxytag: member="log4cpp::Category::ownsAppender" ref="322ca57d9dfd5291f7be3fb9f1d9076a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool log4cpp::Category::ownsAppender </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const throw ()<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Returns true if the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> owns the first <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> in its <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> set. <p> In that case the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> destructor will delete the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <dl class="deprecated" compact><dt><b><a class="el" href="deprecated.html#_deprecated000004">Deprecated:</a></b></dt><dd>use ownsAppender(Appender*) </dd></dl> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#9cdddf29802ec56265352a0e63b7a131">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="aa875c937496cbae47305505658cc13d"></a><!-- doxytag: member="log4cpp::Category::removeAllAppenders" ref="aa875c937496cbae47305505658cc13d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::removeAllAppenders </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Removes all appenders for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e052abcf7eb04a314400b43c58c78b68">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="791368f003a7a473ae70cfbbeef08512"></a><!-- doxytag: member="log4cpp::Category::removeAppender" ref="791368f003a7a473ae70cfbbeef08512" args="(Appender *appender)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::removeAppender </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td> <td class="paramname"> <em>appender</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Removes specified appender for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl> </div> </div><p> <a class="anchor" name="604ed38018f864308c329d043847c5b3"></a><!-- doxytag: member="log4cpp::Category::setAdditivity" ref="604ed38018f864308c329d043847c5b3" args="(bool additivity)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::setAdditivity </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>additivity</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance. <p> <p>Reimplemented in <a class="el" href="classlog4cpp_1_1FixedContextCategory.html#050500a967022390512eb4bc776cb648">log4cpp::FixedContextCategory</a>.</p> </div> </div><p> <a class="anchor" name="d9820b0eb831c37832c850ed6110f124"></a><!-- doxytag: member="log4cpp::Category::setAppender" ref="d9820b0eb831c37832c850ed6110f124" args="(Appender &appender)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::setAppender </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> & </td> <td class="paramname"> <em>appender</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Adds an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> This method does not pass ownership from the caller to the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <dl class="deprecated" compact><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>use <a class="el" href="classlog4cpp_1_1Category.html#f6e26395fb0fdcd842fa9b8d32dbaace" title="Adds an Appender for this Category.">addAppender(Appender&)</a> instead. </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>appender</em> </td><td>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> this category has to log to. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="fc5a373da3c106e4da78822f99560075"></a><!-- doxytag: member="log4cpp::Category::setAppender" ref="fc5a373da3c106e4da78822f99560075" args="(Appender *appender)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::setAppender </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td> <td class="paramname"> <em>appender</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Adds an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> This method passes ownership from the caller to the <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <dl class="deprecated" compact><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>use <a class="el" href="classlog4cpp_1_1Category.html#fe22130ca03516ea3f9331446e2b0d5d" title="Adds an Appender to this Category.">addAppender(Appender*)</a> or <a class="el" href="classlog4cpp_1_1Category.html#aa875c937496cbae47305505658cc13d" title="Removes all appenders for this Category.">removeAllAppenders()</a> instead. </dd></dl> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>appender</em> </td><td>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> this category has to log to or NULL to remove the current Appenders. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="51424bad2e31a7c5786c2c03015ac5b4"></a><!-- doxytag: member="log4cpp::Category::setPriority" ref="51424bad2e31a7c5786c2c03015ac5b4" args="(Priority::Value priority)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::setPriority </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em> </td> <td> ) </td> <td> throw (std::invalid_argument)<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the priority of this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> <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 priority to set. Use <a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">Priority::NOTSET</a> to let the category use its parents priority as effective priority. </td></tr> </table> </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 caller tries to set <a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">Priority::NOTSET</a> on the Root <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="dd951394d3c2e5532c046879ad836a0f"></a><!-- doxytag: member="log4cpp::Category::setRootPriority" ref="dd951394d3c2e5532c046879ad836a0f" args="(Priority::Value priority)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::setRootPriority </td> <td>(</td> <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td> <td class="paramname"> <em>priority</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the priority of the root <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. <p> <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 new priority for the root <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="929c1316dc9ce33506a48e92b190df7b"></a><!-- doxytag: member="log4cpp::Category::shutdown" ref="929c1316dc9ce33506a48e92b190df7b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::shutdown </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> This method will remove all Appenders from Categories.XXX. <p> </div> </div><p> <a class="anchor" name="0f5bc1528f7e8947b5dc670a0f60af66"></a><!-- doxytag: member="log4cpp::Category::warn" ref="0f5bc1528f7e8947b5dc670a0f60af66" args="(const std::string &message)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::warn </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>message</em> </td> <td> ) </td> <td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with warn priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>message</em> </td><td>string to write in the log file </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="9c372f41858234fe5ab0cfe94cfdb94a"></a><!-- doxytag: member="log4cpp::Category::warn" ref="9c372f41858234fe5ab0cfe94cfdb94a" args="(const char *stringFormat,...)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void log4cpp::Category::warn </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>stringFormat</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"> </td> <td class="paramname"> <em>...</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> throw ()</td> </tr> </table> </div> <div class="memdoc"> <p> Log a message with warn priority. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stringFormat</em> </td><td>Format specifier for the string to write in the log file. </td></tr> <tr><td valign="top"></td><td valign="top"><em>...</em> </td><td>The arguments for stringFormat </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="c283548b14f3897e20f85b83f6ce9e35"></a><!-- doxytag: member="log4cpp::Category::warnStream" ref="c283548b14f3897e20f85b83f6ce9e35" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> log4cpp::Category::warnStream </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a> with priority WARN. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1CategoryStream.html" title="This class enables streaming simple types and objects to a category.">CategoryStream</a>. </dd></dl> </div> </div><p> <hr><h2>Friends And Related Function Documentation</h2> <a class="anchor" name="09f128c878c5735c0802cfbf132b6b9d"></a><!-- doxytag: member="log4cpp::Category::HierarchyMaintainer" ref="09f128c878c5735c0802cfbf132b6b9d" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">friend class <a class="el" href="classlog4cpp_1_1HierarchyMaintainer.html">HierarchyMaintainer</a><code> [friend]</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="Category_8hh_source.html">Category.hh</a><li><a class="el" href="Category_8cpp.html">Category.cpp</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 26 19:34:33 2009 for log4cpp by <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>