📄 category_8hh-source.html
字号:
<a name="l00359"></a><a class="code" href="classlog4cpp_1_1Category.html#a32">00359</a> <span class="keyword">inline</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> infoStream() {00360 <span class="keywordflow">return</span> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w11w8">Priority::INFO</a>);00361 }00362 00369 <span class="keywordtype">void</span> notice(<span class="keyword">const</span> <span class="keywordtype">char</span>* stringFormat, ...) throw();00370 00375 <span class="keywordtype">void</span> notice(const std::string& message) throw();00376 <a name="l00381"></a><a class="code" href="classlog4cpp_1_1Category.html#a35">00381</a> inline <span class="keywordtype">bool</span> isNoticeEnabled() const throw() { 00382 <span class="keywordflow">return</span> isPriorityEnabled(<a class="code" href="classlog4cpp_1_1Priority.html#w11w7">Priority::NOTICE</a>);00383 };00384 <a name="l00389"></a><a class="code" href="classlog4cpp_1_1Category.html#a36">00389</a> <span class="keyword">inline</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> noticeStream() {00390 <span class="keywordflow">return</span> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w11w7">Priority::NOTICE</a>);00391 }00392 00399 <span class="keywordtype">void</span> warn(<span class="keyword">const</span> <span class="keywordtype">char</span>* stringFormat, ...) throw();00400 00405 <span class="keywordtype">void</span> warn(const std::string& message) throw();00406 <a name="l00411"></a><a class="code" href="classlog4cpp_1_1Category.html#a39">00411</a> inline <span class="keywordtype">bool</span> isWarnEnabled() const throw() { 00412 <span class="keywordflow">return</span> isPriorityEnabled(<a class="code" href="classlog4cpp_1_1Priority.html#w11w6">Priority::WARN</a>);00413 };00414 <a name="l00419"></a><a class="code" href="classlog4cpp_1_1Category.html#a40">00419</a> <span class="keyword">inline</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> warnStream() {00420 <span class="keywordflow">return</span> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w11w6">Priority::WARN</a>);00421 };00422 00429 <span class="keywordtype">void</span> error(<span class="keyword">const</span> <span class="keywordtype">char</span>* stringFormat, ...) throw();00430 00435 <span class="keywordtype">void</span> error(const std::string& message) throw();00436 <a name="l00441"></a><a class="code" href="classlog4cpp_1_1Category.html#a43">00441</a> inline <span class="keywordtype">bool</span> isErrorEnabled() const throw() { 00442 <span class="keywordflow">return</span> isPriorityEnabled(<a class="code" href="classlog4cpp_1_1Priority.html#w11w5">Priority::ERROR</a>);00443 };00444 <a name="l00449"></a><a class="code" href="classlog4cpp_1_1Category.html#a44">00449</a> <span class="keyword">inline</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> errorStream() {00450 <span class="keywordflow">return</span> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w11w5">Priority::ERROR</a>);00451 };00452 00459 <span class="keywordtype">void</span> crit(<span class="keyword">const</span> <span class="keywordtype">char</span>* stringFormat, ...) throw();00460 00465 <span class="keywordtype">void</span> crit(const std::string& message) throw();00466 <a name="l00471"></a><a class="code" href="classlog4cpp_1_1Category.html#a47">00471</a> inline <span class="keywordtype">bool</span> isCritEnabled() const throw() { 00472 <span class="keywordflow">return</span> isPriorityEnabled(<a class="code" href="classlog4cpp_1_1Priority.html#w11w4">Priority::CRIT</a>);00473 };00474 <a name="l00479"></a><a class="code" href="classlog4cpp_1_1Category.html#a48">00479</a> <span class="keyword">inline</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> critStream() {00480 <span class="keywordflow">return</span> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w11w4">Priority::CRIT</a>);00481 };00482 00489 <span class="keywordtype">void</span> alert(<span class="keyword">const</span> <span class="keywordtype">char</span>* stringFormat, ...) throw();00490 00495 <span class="keywordtype">void</span> alert(const std::string& message) throw();00496 <a name="l00501"></a><a class="code" href="classlog4cpp_1_1Category.html#a51">00501</a> inline <span class="keywordtype">bool</span> isAlertEnabled() const throw() { 00502 <span class="keywordflow">return</span> isPriorityEnabled(<a class="code" href="classlog4cpp_1_1Priority.html#w11w3">Priority::ALERT</a>);00503 };00504 <a name="l00509"></a><a class="code" href="classlog4cpp_1_1Category.html#a52">00509</a> <span class="keyword">inline</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> alertStream() throw() {00510 <span class="keywordflow">return</span> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w11w3">Priority::ALERT</a>);00511 };00512 00519 <span class="keywordtype">void</span> emerg(<span class="keyword">const</span> <span class="keywordtype">char</span>* stringFormat, ...) throw();00520 00525 <span class="keywordtype">void</span> emerg(const std::string& message) throw();00526 <a name="l00531"></a><a class="code" href="classlog4cpp_1_1Category.html#a55">00531</a> inline <span class="keywordtype">bool</span> isEmergEnabled() const throw() { 00532 <span class="keywordflow">return</span> isPriorityEnabled(<a class="code" href="classlog4cpp_1_1Priority.html#w11w1">Priority::EMERG</a>);00533 };00534 <a name="l00539"></a><a class="code" href="classlog4cpp_1_1Category.html#a56">00539</a> <span class="keyword">inline</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> emergStream() {00540 <span class="keywordflow">return</span> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w11w1">Priority::EMERG</a>);00541 };00542 00551 <span class="keywordtype">void</span> fatal(<span class="keyword">const</span> <span class="keywordtype">char</span>* stringFormat, ...) throw();00552 00559 <span class="keywordtype">void</span> fatal(const std::string& message) throw();00560 <a name="l00567"></a><a class="code" href="classlog4cpp_1_1Category.html#a59">00567</a> inline <span class="keywordtype">bool</span> isFatalEnabled() const throw() { 00568 <span class="keywordflow">return</span> isPriorityEnabled(<a class="code" href="classlog4cpp_1_1Priority.html#w11w2">Priority::FATAL</a>);00569 };00570 <a name="l00577"></a><a class="code" href="classlog4cpp_1_1Category.html#a60">00577</a> <span class="keyword">inline</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> fatalStream() {00578 <span class="keywordflow">return</span> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w11w2">Priority::FATAL</a>);00579 };00580 00586 <span class="keyword">virtual</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> getStream(<a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> priority);00587 00593 <span class="keyword">virtual</span> <a class="code" href="classlog4cpp_1_1CategoryStream.html">CategoryStream</a> <a class="code" href="namespacelog4cpp.html#a7">operator<<</a>(<a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> priority);00594 00595 <span class="keyword">protected</span>:00596 00605 <a class="code" href="namespacelog4cpp.html#a2">Category</a>(<span class="keyword">const</span> std::string& name, Category* parent, 00606 <a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> priority = <a class="code" href="classlog4cpp_1_1Priority.html#w11w10">Priority::NOTSET</a>);00607 00608 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _logUnconditionally(<a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> priority, 00609 <span class="keyword">const</span> <span class="keywordtype">char</span>* format, 00610 va_list arguments) <span class="keywordflow">throw</span>();00611 00617 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _logUnconditionally2(<a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> priority, 00618 <span class="keyword">const</span> std::string& message) <span class="keywordflow">throw</span>();00619 00620 <span class="keyword">private</span>:00621 00622 <span class="comment">/* prevent copying and assignment */</span>00623 <a class="code" href="namespacelog4cpp.html#a2">Category</a>(<span class="keyword">const</span> Category& other);00624 Category& operator=(<span class="keyword">const</span> Category& other);00625 00627 <span class="keyword">const</span> std::string _name;00628 00633 Category* _parent;00634 00638 <span class="keyword">volatile</span> <a class="code" href="classlog4cpp_1_1Priority.html#w0">Priority::Value</a> _priority;00639 00640 <span class="keyword">typedef</span> std::map<Appender *, bool> OwnsAppenderMap;00641 00648 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> ownsAppender(<a class="code" href="classlog4cpp_1_1Appender.html">Appender</a>* appender, 00649 OwnsAppenderMap::iterator& i2) <span class="keywordflow">throw</span>();00650 00651 <a class="code" href="namespacelog4cpp.html#a1">AppenderSet</a> _appender;00652 <span class="keyword">mutable</span> <a class="code" href="classlog4cpp_1_1threading_1_1Mutex.html">threading::Mutex</a> _appenderSetMutex;00653 00659 OwnsAppenderMap _ownsAppender;00660 00665 <span class="keyword">volatile</span> <span class="keywordtype">bool</span> _isAdditive;00666 00667 };00668 00669 }00670 <span class="preprocessor">#endif // _LOG4CPP_CATEGORY_HH</span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:07:33 2005 for log4cpp by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -