📄 clogger_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ace-radius: COMMON/CLogger.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.7-20040704 --><div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a></div><h1>COMMON/CLogger.h</h1><pre class="fragment"><div>00001 <span class="comment">/*</span>00002 <span class="comment"> * This source file is part of the ace-radius library. This code was</span>00003 <span class="comment"> * written by Alex Agranov in 2004, and is covered by the BSD open source</span>00004 <span class="comment"> * license. Refer to the accompanying documentation for details on usage and</span>00005 <span class="comment"> * license.</span>00006 <span class="comment"> */</span>00007 00008 <span class="preprocessor">#ifndef _CLOGGER_H__</span>00009 <span class="preprocessor"></span><span class="preprocessor">#define _CLOGGER_H__</span>00010 <span class="preprocessor"></span>00011 <span class="preprocessor">#include "ace/Log_Msg.h"</span>00012 <span class="preprocessor">#include "ace/Singleton.h"</span>00013 <span class="preprocessor">#include "ace/Synch.h"</span>00014 <a name="l00025"></a><a class="code" href="classCLogger.html">00025</a> <span class="keyword">class </span><a class="code" href="classCLogger.html">CLogger</a>00026 {00027 <span class="keyword">public</span>:00028 00030 <a class="code" href="classCLogger.html#a0">CLogger</a>();00031 00033 <span class="keywordtype">void</span> <a class="code" href="classCLogger.html#a1">init</a>(u_long p_mask);00034 00036 <span class="keywordtype">void</span> <a class="code" href="classCLogger.html#a2">logInfo</a>(00037 <span class="keyword">const</span> <span class="keywordtype">char</span>* p_format,00038 ...00039 );00040 00042 <span class="keywordtype">void</span> <a class="code" href="classCLogger.html#a3">logError</a>(00043 <span class="keyword">const</span> <span class="keywordtype">char</span>* p_format,00044 ...00045 );00046 00048 <span class="keywordtype">void</span> <a class="code" href="classCLogger.html#a4">logWarning</a>(00049 <span class="keyword">const</span> <span class="keywordtype">char</span>* p_format,00050 ...00051 );00052 00054 <span class="keywordtype">void</span> <a class="code" href="classCLogger.html#a5">logDebug</a>(00055 <span class="keyword">const</span> <span class="keywordtype">char</span>* p_format,00056 ...00057 );00058 00060 <span class="keywordtype">void</span> <a class="code" href="classCLogger.html#a6">logTrace</a>(00061 <span class="keyword">const</span> <span class="keywordtype">char</span>* p_format,00062 ...00063 );00064 00066 <span class="keywordtype">void</span> <a class="code" href="classCLogger.html#a7">logStartup</a>(00067 <span class="keyword">const</span> <span class="keywordtype">char</span>* p_format,00068 ...00069 );00070 00071 };00072 00073 00074 <span class="comment">// global singleton</span>00075 <span class="keyword">typedef</span> ACE_Singleton<CLogger, ACE_Null_Mutex> LOGGER;00076 00077 00078 <span class="preprocessor">#define D_LOG_INFO LOGGER::instance()->logInfo</span>00079 <span class="preprocessor"></span><span class="preprocessor">#define D_LOG_ERROR LOGGER::instance()->logError</span>00080 <span class="preprocessor"></span><span class="preprocessor">#define D_LOG_WARNING LOGGER::instance()->logWarning</span>00081 <span class="preprocessor"></span><span class="preprocessor">#define D_LOG_DEBUG LOGGER::instance()->logDebug</span>00082 <span class="preprocessor"></span><span class="preprocessor">#define D_LOG_TRACE LOGGER::instance()->logTrace</span>00083 <span class="preprocessor"></span><span class="preprocessor">#define D_LOG_STARTUP LOGGER::instance()->logStartup</span>00084 <span class="preprocessor"></span>00085 00086 <span class="preprocessor">#endif // _CLOGGER_H__</span>00087 <span class="preprocessor"></span></div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 30 11:00:57 2005 for ace-radius by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7-20040704 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -