<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>GNU CommonC++: slog.h Source File</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.6.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <h1>slog.h</h1><a href="slog_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 1999-2005 Open Source Telecom Corporation.</span> <a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2006-2008 David Sugar, Tycho Softworks.</span> <a name="l00003"></a>00003 <span class="comment">//</span> <a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it and/or modify</span> <a name="l00005"></a>00005 <span class="comment">// it under the terms of the GNU General Public License as published by</span> <a name="l00006"></a>00006 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span> <a name="l00007"></a>00007 <span class="comment">// (at your option) any later version.</span> <a name="l00008"></a>00008 <span class="comment">//</span> <a name="l00009"></a>00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span> <a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <a name="l00012"></a>00012 <span class="comment">// GNU General Public License for more details.</span> <a name="l00013"></a>00013 <span class="comment">//</span> <a name="l00014"></a>00014 <span class="comment">// You should have received a copy of the GNU General Public License</span> <a name="l00015"></a>00015 <span class="comment">// along with this program; if not, write to the Free Software</span> <a name="l00016"></a>00016 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span> <a name="l00017"></a>00017 <span class="comment">//</span> <a name="l00018"></a>00018 <span class="comment">// As a special exception, you may use this file as part of a free software</span> <a name="l00019"></a>00019 <span class="comment">// library without restriction. Specifically, if other files instantiate</span> <a name="l00020"></a>00020 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span> <a name="l00021"></a>00021 <span class="comment">// this file and link it with other files to produce an executable, this</span> <a name="l00022"></a>00022 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span> <a name="l00023"></a>00023 <span class="comment">// the GNU General Public License. This exception does not however</span> <a name="l00024"></a>00024 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span> <a name="l00025"></a>00025 <span class="comment">// the GNU General Public License.</span> <a name="l00026"></a>00026 <span class="comment">//</span> <a name="l00027"></a>00027 <span class="comment">// This exception applies only to the code released under the name GNU</span> <a name="l00028"></a>00028 <span class="comment">// Common C++. If you copy code from other releases into a copy of GNU</span> <a name="l00029"></a>00029 <span class="comment">// Common C++, as the General Public License permits, the exception does</span> <a name="l00030"></a>00030 <span class="comment">// not apply to the code that you add in this way. To avoid misleading</span> <a name="l00031"></a>00031 <span class="comment">// anyone as to the status of such modified files, you must delete</span> <a name="l00032"></a>00032 <span class="comment">// this exception notice from them.</span> <a name="l00033"></a>00033 <span class="comment">//</span> <a name="l00034"></a>00034 <span class="comment">// If you write modifications of your own for GNU Common C++, it is your choice</span> <a name="l00035"></a>00035 <span class="comment">// whether to permit this exception to apply to your modifications.</span> <a name="l00036"></a>00036 <span class="comment">// If you do not wish that, delete this exception notice.</span> <a name="l00037"></a>00037 <span class="comment">//</span> <a name="l00038"></a>00038 <a name="l00044"></a>00044 <span class="preprocessor">#ifndef CCXX_SLOG_H_</span> <a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_SLOG_H_</span> <a name="l00046"></a>00046 <span class="preprocessor"></span> <a name="l00047"></a>00047 <span class="preprocessor">#ifndef CCXX_MISSING_H_</span> <a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="missing_8h.html" title="substitute functions which may be missing in target platform libc.">cc++/missing.h</a>></span> <a name="l00049"></a>00049 <span class="preprocessor">#endif</span> <a name="l00050"></a>00050 <span class="preprocessor"></span> <a name="l00051"></a>00051 <span class="preprocessor">#ifndef CCXX_THREAD_H_</span> <a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="thread_8h.html" title="Synchronization and threading services.">cc++/thread.h</a>></span> <a name="l00053"></a>00053 <span class="preprocessor">#endif</span> <a name="l00054"></a>00054 <span class="preprocessor"></span> <a name="l00055"></a>00055 <span class="preprocessor">#ifndef HAVE_SYSLOG_H</span> <a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#include <cstdio></span> <a name="l00057"></a>00057 <span class="preprocessor">#endif</span> <a name="l00058"></a>00058 <span class="preprocessor"></span> <a name="l00059"></a>00059 <span class="preprocessor">#ifdef CCXX_NAMESPACES</span> <a name="l00060"></a>00060 <span class="preprocessor"></span><span class="keyword">namespace </span>ost { <a name="l00061"></a>00061 <span class="preprocessor">#endif</span> <a name="l00062"></a>00062 <span class="preprocessor"></span> <a name="l00104"></a><a class="code" href="classost_1_1_slog.html">00104</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> : <span class="keyword">protected</span> std::streambuf, <span class="keyword">public</span> std::ostream <a name="l00105"></a>00105 { <a name="l00106"></a>00106 <span class="keyword">public</span>: <a name="l00107"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1c">00107</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1c">Class</a> { <a name="l00108"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1cadbc7ee2d213b386b962aff63507ced66">00108</a> classSecurity, <a name="l00109"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1caa554df70877ccf03997221a85a22a437">00109</a> classAudit, <a name="l00110"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1ca3b46eb6c6905a57afb66746aed70b0a2">00110</a> classDaemon, <a name="l00111"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1ca812ba0b753a975e7c91a8f360388bb1c">00111</a> classUser, <a name="l00112"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1cadc48842ad6b71881762ab3b6d2f97c3c">00112</a> classDefault, <a name="l00113"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1ca44ea4afbff7b7d8efcade231fa2aa54d">00113</a> classLocal0, <a name="l00114"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1ca1225cd34f8a1709d23e6d896b942a333">00114</a> classLocal1, <a name="l00115"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1ca66f3a33e0270bcd53a56478b4f23cfe4">00115</a> classLocal2, <a name="l00116"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1ca74ae4394d23ba6032c3f978370e2daba">00116</a> classLocal3, <a name="l00117"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1caf50fdf9753a8d1f559dbff587ccdb986">00117</a> classLocal4, <a name="l00118"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1cadd15541cddf1e67ee2b6b66ffe81e077">00118</a> classLocal5, <a name="l00119"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1ca129ffec69e592d55af991d655d2478f7">00119</a> classLocal6, <a name="l00120"></a><a class="code" href="classost_1_1_slog.html#ab4f915f1931605df91e4b453d6cdae1cabdd079dc864ecc3c6e8fe1241483b15c">00120</a> classLocal7 <a name="l00121"></a>00121 } Class; <a name="l00122"></a>00122 <a name="l00123"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7a">00123</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7a">Level</a> { <a name="l00124"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa1acd6522fbb9d8790867d5c51ea9b008">00124</a> levelEmergency = 1, <a name="l00125"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa4862c8c52a86210064d2d6360db6b18d">00125</a> levelAlert, <a name="l00126"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aabe7a4f15d9ea484e01831a7dc3e71926">00126</a> levelCritical, <a name="l00127"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aaf82cf7bb589d776186fbd0ab7b345f6e">00127</a> levelError, <a name="l00128"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa568c02bbd98a58f508a83334c65ffcea">00128</a> levelWarning, <a name="l00129"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aada39f730e92fdec6cad3616fa3567c95">00129</a> levelNotice, <a name="l00130"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa4a5387e1f48ef86841a807f6687d3d9c">00130</a> levelInfo, <a name="l00131"></a><a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa7d9ce368944e6852d05730c269432b3a">00131</a> levelDebug <a name="l00132"></a>00132 } Level; <a name="l00133"></a>00133 <a name="l00134"></a>00134 <span class="keyword">private</span>: <a name="l00135"></a>00135 <span class="preprocessor">#ifndef HAVE_SYSLOG_H</span> <a name="l00136"></a>00136 <span class="preprocessor"></span> <a class="code" href="classost_1_1_mutex.html" title="The Mutex class is used to protect a section of code so that at any given time only...">Mutex</a> lock; <a name="l00137"></a>00137 FILE *syslog; <a name="l00138"></a>00138 <span class="preprocessor">#endif</span> <a name="l00139"></a>00139 <span class="preprocessor"></span> <span class="keywordtype">int</span> priority; <a name="l00140"></a>00140 Level _level; <a name="l00141"></a>00141 <span class="keywordtype">bool</span> _enable; <a name="l00142"></a>00142 <span class="keywordtype">bool</span> _clogEnable; <a name="l00143"></a>00143 <a name="l00144"></a>00144 ThreadImpl *getPriv(<span class="keywordtype">void</span>); <a name="l00145"></a>00145 <a name="l00146"></a>00146 <span class="keyword">protected</span>: <a name="l00152"></a>00152 <span class="keywordtype">int</span> overflow(<span class="keywordtype">int</span> c); <a name="l00153"></a>00153 <a name="l00154"></a>00154 <span class="keyword">public</span>: <a name="l00162"></a>00162 <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a>(<span class="keywordtype">void</span>); <a name="l00163"></a>00163 <a name="l00164"></a>00164 <span class="keyword">virtual</span> ~<a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a>(<span class="keywordtype">void</span>); <a name="l00165"></a>00165 <a name="l00166"></a>00166 <span class="keywordtype">void</span> close(<span class="keywordtype">void</span>); <a name="l00167"></a>00167 <a name="l00173"></a>00173 <span class="keywordtype">void</span> open(<span class="keyword">const</span> <span class="keywordtype">char</span> *ident, Class grp = classUser); <a name="l00174"></a>00174 <a name="l00181"></a>00181 <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &operator()(<span class="keyword">const</span> <span class="keywordtype">char</span> *ident, Class grp = classUser, <a name="l00182"></a>00182 Level level = levelError); <a name="l00183"></a>00183 <a name="l00189"></a>00189 <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &operator()(Level level, Class grp = classDefault); <a name="l00190"></a>00190 <a name="l00194"></a>00194 <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &operator()(<span class="keywordtype">void</span>); <a name="l00195"></a>00195 <a name="l00196"></a>00196 <span class="preprocessor">#ifdef HAVE_SNPRINTF</span> <a name="l00197"></a>00197 <span class="preprocessor"></span> <a name="l00202"></a>00202 <span class="keywordtype">void</span> <a class="code" href="namespaceost.html#a61faeec2dc6ec946dc3e98979bd93124" title="Manipulator for error level.">error</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...); <a name="l00203"></a>00203 <a name="l00209"></a>00209 <span class="keywordtype">void</span> <a class="code" href="namespaceost.html#a24dc8ba691e7376d9c19762e2701fa63" title="Manipulator for warn level.">warn</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...); <a name="l00210"></a>00210 <a name="l00216"></a>00216 <span class="keywordtype">void</span> <a class="code" href="namespaceost.html#a60294b8e0dd5a8812580edd0446ac11a" title="Manipulator for debug level.">debug</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...); <a name="l00217"></a>00217 <a name="l00223"></a>00223 <span class="keywordtype">void</span> <a class="code" href="namespaceost.html#a83dc8550b8ed793d67cdd61eb19c92ed" title="Manipulator for emerg level.">emerg</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...); <a name="l00224"></a>00224 <a name="l00230"></a>00230 <span class="keywordtype">void</span> <a class="code" href="namespaceost.html#a1f2a71206461b2144eaf6a3e7150e5dd" title="Manipulator for alert level.">alert</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...); <a name="l00231"></a>00231 <a name="l00237"></a>00237 <span class="keywordtype">void</span> <a class="code" href="namespaceost.html#a5e16a3488a940fdefd3b54e9f472668b" title="Manipulator for critical level.">critical</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...); <a name="l00238"></a>00238 <a name="l00244"></a>00244 <span class="keywordtype">void</span> <a class="code" href="namespaceost.html#a14670ea356ba2430da0221cd72532cdf" title="Manipulator for notice level.">notice</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...); <a name="l00245"></a>00245 <a name="l00251"></a>00251 <span class="keywordtype">void</span> <a class="code" href="namespaceost.html#a622b45d2f58d84c1d8c364763a97c2da" title="Manipulator for info level.">info</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, ...); <a name="l00252"></a>00252 <span class="preprocessor">#endif</span> <a name="l00253"></a>00253 <span class="preprocessor"></span> <a name="l00258"></a><a class="code" href="classost_1_1_slog.html#a7f4111d989cee472f4d035852a80bcdf">00258</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> level(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7a">Level</a> enable) <a name="l00259"></a>00259 {_level = enable;}; <a name="l00260"></a>00260 <a name="l00266"></a><a class="code" href="classost_1_1_slog.html#a7529ca8421ee3672a75fea37736cc94f">00266</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> clogEnable(<span class="keywordtype">bool</span> f=<span class="keyword">true</span>) <a name="l00267"></a>00267 {_clogEnable = f;}; <a name="l00268"></a>00268 <a name="l00269"></a><a class="code" href="classost_1_1_slog.html#a4b3ac21264a627f76ef21c304575acc9">00269</a> <span class="keyword">inline</span> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &<a class="code" href="namespaceost.html#a24dc8ba691e7376d9c19762e2701fa63" title="Manipulator for warn level.">warn</a>(<span class="keywordtype">void</span>) <a name="l00270"></a>00270 {<span class="keywordflow">return</span> operator()(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa568c02bbd98a58f508a83334c65ffcea">Slog::levelWarning</a>);}; <a name="l00271"></a>00271 <a name="l00272"></a><a class="code" href="classost_1_1_slog.html#a6588a9a357b37783786e429f7003ca6a">00272</a> <span class="keyword">inline</span> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &<a class="code" href="namespaceost.html#a61faeec2dc6ec946dc3e98979bd93124" title="Manipulator for error level.">error</a>(<span class="keywordtype">void</span>) <a name="l00273"></a>00273 {<span class="keywordflow">return</span> operator()(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aaf82cf7bb589d776186fbd0ab7b345f6e">Slog::levelError</a>);}; <a name="l00274"></a>00274 <a name="l00275"></a><a class="code" href="classost_1_1_slog.html#afe897077c2039e27f25296563adbf3d2">00275</a> <span class="keyword">inline</span> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &<a class="code" href="namespaceost.html#a60294b8e0dd5a8812580edd0446ac11a" title="Manipulator for debug level.">debug</a>(<span class="keywordtype">void</span>) <a name="l00276"></a>00276 {<span class="keywordflow">return</span> operator()(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa7d9ce368944e6852d05730c269432b3a">Slog::levelDebug</a>);}; <a name="l00277"></a>00277 <a name="l00278"></a><a class="code" href="classost_1_1_slog.html#a809268f1637b14c2af84376224e35867">00278</a> <span class="keyword">inline</span> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &<a class="code" href="namespaceost.html#a83dc8550b8ed793d67cdd61eb19c92ed" title="Manipulator for emerg level.">emerg</a>(<span class="keywordtype">void</span>) <a name="l00279"></a>00279 {<span class="keywordflow">return</span> operator()(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa1acd6522fbb9d8790867d5c51ea9b008">Slog::levelEmergency</a>);}; <a name="l00280"></a>00280 <a name="l00281"></a><a class="code" href="classost_1_1_slog.html#a203d4847e5f1c05df43a46de74206a32">00281</a> <span class="keyword">inline</span> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &<a class="code" href="namespaceost.html#a1f2a71206461b2144eaf6a3e7150e5dd" title="Manipulator for alert level.">alert</a>(<span class="keywordtype">void</span>) <a name="l00282"></a>00282 {<span class="keywordflow">return</span> operator()(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa4862c8c52a86210064d2d6360db6b18d">Slog::levelAlert</a>);}; <a name="l00283"></a>00283 <a name="l00284"></a><a class="code" href="classost_1_1_slog.html#a5ad3a15701be1fcc118b8fa1319b881f">00284</a> <span class="keyword">inline</span> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &<a class="code" href="namespaceost.html#a5e16a3488a940fdefd3b54e9f472668b" title="Manipulator for critical level.">critical</a>(<span class="keywordtype">void</span>) <a name="l00285"></a>00285 {<span class="keywordflow">return</span> operator()(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aabe7a4f15d9ea484e01831a7dc3e71926">Slog::levelCritical</a>);}; <a name="l00286"></a>00286 <a name="l00287"></a><a class="code" href="classost_1_1_slog.html#a5f80262e108f7b3892aeb0f12e72a7ea">00287</a> <span class="keyword">inline</span> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &<a class="code" href="namespaceost.html#a14670ea356ba2430da0221cd72532cdf" title="Manipulator for notice level.">notice</a>(<span class="keywordtype">void</span>) <a name="l00288"></a>00288 {<span class="keywordflow">return</span> operator()(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aada39f730e92fdec6cad3616fa3567c95">Slog::levelNotice</a>);}; <a name="l00289"></a>00289 <a name="l00290"></a><a class="code" href="classost_1_1_slog.html#aaeba8f042560a4744a4caac4b6dc9b4a">00290</a> <span class="keyword">inline</span> <a class="code" href="classost_1_1_slog.html" title="The slog class is used to stream messages to the system&#39;s logging facility (syslogd)...">Slog</a> &<a class="code" href="namespaceost.html#a622b45d2f58d84c1d8c364763a97c2da" title="Manipulator for info level.">info</a>(<span class="keywordtype">void</span>) <a name="l00291"></a>00291 {<span class="keywordflow">return</span> operator()(<a class="code" href="classost_1_1_slog.html#a47ef36225607dba90b4be5012daccd7aa4a5387e1f48ef86841a807f6687d3d9c">Slog::levelInfo</a>);}; <a name="l00292"></a>00292 <a name="l00293"></a>00293 }; <a name="l00294"></a>00294 <a name="l00295"></a>00295 <span class="comment">//#ifdef CYGWIN_IMPORTS</span> <a name="l00296"></a>00296 <span class="comment">//extern __declspec(dllimport) Slog slog;</span> <a name="l00297"></a>00297 <span class="comment">//#else</span> <a name="l00298"></a>00298 <span class="keyword">extern</span> <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> Slog <a class="code" href="namespaceost.html#a521e76d0861afe0b523e3c0c3956dca8">slog</a>; <a name="l00299"></a>00299 <span class="comment">//#endif</span> <a name="l00300"></a>00300 <a name="l00301"></a>00301 <span class="preprocessor">#ifdef CCXX_NAMESPACES</span> <a name="l00302"></a>00302 <span class="preprocessor"></span>} <a name="l00303"></a>00303 <span class="preprocessor">#endif</span> <a name="l00304"></a>00304 <span class="preprocessor"></span> <a name="l00305"></a>00305 <span class="preprocessor">#endif</span> <a name="l00306"></a>00306 <span class="preprocessor"></span> </pre></div></div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:46 2010 for GNU CommonC++ by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>