Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 753

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

\section{ost::Slog Class Reference}
\label{classost_1_1_slog}\index{ost::Slog@{ost::Slog}}
The slog class is used to stream messages to the system's logging facility (syslogd).system logging facility class.  


{\tt \#include $<$slog.h$>$}

\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef enum {\bf ost::Slog::Class} {\bf Class}
\item 
typedef enum {\bf ost::Slog::Level} {\bf Level}
\item 
enum {\bf Class} \{ \par
{\bf class\-Security}, 
{\bf class\-Audit}, 
{\bf class\-Daemon}, 
{\bf class\-User}, 
\par
{\bf class\-Default}, 
{\bf class\-Local0}, 
{\bf class\-Local1}, 
{\bf class\-Local2}, 
\par
{\bf class\-Local3}, 
{\bf class\-Local4}, 
{\bf class\-Local5}, 
{\bf class\-Local6}, 
\par
{\bf class\-Local7}
 \}
\item 
enum {\bf Level} \{ \par
{\bf level\-Emergency} =  1, 
{\bf level\-Alert}, 
{\bf level\-Critical}, 
{\bf level\-Error}, 
\par
{\bf level\-Warning}, 
{\bf level\-Notice}, 
{\bf level\-Info}, 
{\bf level\-Debug}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Slog} (void)
\begin{CompactList}\small\item\em Default (and only) constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$Slog} (void)
\item 
void {\bf close} (void)
\item 
void {\bf open} (const char $\ast$ident, {\bf Class} grp=class\-User)
\begin{CompactList}\small\item\em (re)opens the output stream. \item\end{CompactList}\item 
{\bf Slog} \& {\bf operator()} (const char $\ast$ident, {\bf Class} grp=class\-User, {\bf Level} level=level\-Error)
\begin{CompactList}\small\item\em Sets the log identifier, level, and class to use for subsequent output. \item\end{CompactList}\item 
{\bf Slog} \& {\bf operator()} ({\bf Level} level, {\bf Class} grp=class\-Default)
\begin{CompactList}\small\item\em Changes the log level and class to use for subsequent output. \item\end{CompactList}\item 
{\bf Slog} \& {\bf operator()} (void)
\begin{CompactList}\small\item\em Does nothing except return $\ast$this. \item\end{CompactList}\item 
void {\bf error} (const char $\ast$format,...)
\begin{CompactList}\small\item\em Print a formatted syslog string. \item\end{CompactList}\item 
void {\bf warn} (const char $\ast$format,...)
\begin{CompactList}\small\item\em Print a formatted syslog string. \item\end{CompactList}\item 
void {\bf debug} (const char $\ast$format,...)
\begin{CompactList}\small\item\em Print a formatted syslog string. \item\end{CompactList}\item 
void {\bf emerg} (const char $\ast$format,...)
\begin{CompactList}\small\item\em Print a formatted syslog string. \item\end{CompactList}\item 
void {\bf alert} (const char $\ast$format,...)
\begin{CompactList}\small\item\em Print a formatted syslog string. \item\end{CompactList}\item 
void {\bf critical} (const char $\ast$format,...)
\begin{CompactList}\small\item\em Print a formatted syslog string. \item\end{CompactList}\item 
void {\bf notice} (const char $\ast$format,...)
\begin{CompactList}\small\item\em Print a formatted syslog string. \item\end{CompactList}\item 
void {\bf info} (const char $\ast$format,...)
\begin{CompactList}\small\item\em Print a formatted syslog string. \item\end{CompactList}\item 
void {\bf level} ({\bf Level} enable)
\begin{CompactList}\small\item\em Sets the logging level. \item\end{CompactList}\item 
void {\bf clog\-Enable} (bool f=true)
\begin{CompactList}\small\item\em Enables or disables the echoing of the messages to clog in addition to the syslog daemon. \item\end{CompactList}\item 
{\bf Slog} \& {\bf warn} (void)
\item 
{\bf Slog} \& {\bf error} (void)
\item 
{\bf Slog} \& {\bf debug} (void)
\item 
{\bf Slog} \& {\bf emerg} (void)
\item 
{\bf Slog} \& {\bf alert} (void)
\item 
{\bf Slog} \& {\bf critical} (void)
\item 
{\bf Slog} \& {\bf notice} (void)
\item 
{\bf Slog} \& {\bf info} (void)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
int {\bf overflow} (int c)
\begin{CompactList}\small\item\em This is the streambuf function that actually outputs the data to the device. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
The slog class is used to stream messages to the system's logging facility (syslogd).system logging facility class. 

A default {\tt slog} object is used to avoid confusion with the native syslog facility and to imply a logical relationship to the C++ {\tt clog()}.

The key difference is that the {\tt slog} object sends it's output to the system logging daemon (typically syslogd) rather than through stderr. {\tt slog} can be streamed with the {\tt $<$$<$} operator just like {\tt clog}; a default slog object is pre-initialized, and you stream character data to it.

The {\tt slog} allows one to specify logging levels and other properties through the {\tt ()} operators. Hence, once can do:

{\tt \small\begin{alltt}
 slog("mydaemon", SLOG\_DAEMON, SLOG\_EMERGENCY) << I just died << endl; \end{alltt}\normalsize 
}

or things like:

{\tt \small\begin{alltt}
 slog("mydaemon", SLOG\_DAEMON); 
 slog(SLOG\_INFO) << "daemon initalized" << endl; \end{alltt}\normalsize 
}

The intent is to be as common-place and as convenient to use as the stderr based clog facility found in C++, and this is especially useful for C++ daemons.

The {\tt std::flush} manipulator doesn't work. Either the {\tt std::endl} or {\tt std::ends} manipulators must be used to cause the output to be sent to the daemon.

When this class is used on a system that doesn't have the syslog headers (i.e. a non-posix win32 box), the output goes to the a file with the same name as the syslog identifier string with '.log' appended to it. If the identifier string ends in '.exe', the '.exe' is removed before the '.log' is appened. (e.g. the identifier foo.exe will generate a log file named foo.log)

\begin{Desc}
\item[Author:]David Sugar $<${\tt dyfet@ostel.com}$>$ \par
Minor docs \& hacks by Jon Little $<${\tt littlej@arlut.utexas.edu}$>$ \end{Desc}




\subsection{Member Typedef Documentation}
\index{ost::Slog@{ost::Slog}!Class@{Class}}
\index{Class@{Class}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef enum {\bf ost::Slog::Class}  {\bf ost::Slog::Class}}\label{classost_1_1_slog_4defb466d865592f43bb4522b926fc24}


\index{ost::Slog@{ost::Slog}!Level@{Level}}
\index{Level@{Level}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef enum {\bf ost::Slog::Level}  {\bf ost::Slog::Level}}\label{classost_1_1_slog_f139df7abeea150282dbbb29b4c24cee}




\subsection{Member Enumeration Documentation}
\index{ost::Slog@{ost::Slog}!Class@{Class}}
\index{Class@{Class}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf ost::Slog::Class}}\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1c}


\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{classSecurity@{classSecurity}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classSecurity@{classSecurity}}\item[{\em 
class\-Security\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1cdbc7ee2d213b386b962aff63507ced66}
}]\index{classAudit@{classAudit}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classAudit@{classAudit}}\item[{\em 
class\-Audit\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1ca554df70877ccf03997221a85a22a437}
}]\index{classDaemon@{classDaemon}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classDaemon@{classDaemon}}\item[{\em 
class\-Daemon\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1c3b46eb6c6905a57afb66746aed70b0a2}
}]\index{classUser@{classUser}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classUser@{classUser}}\item[{\em 
class\-User\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1c812ba0b753a975e7c91a8f360388bb1c}
}]\index{classDefault@{classDefault}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classDefault@{classDefault}}\item[{\em 
class\-Default\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1cdc48842ad6b71881762ab3b6d2f97c3c}
}]\index{classLocal0@{classLocal0}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classLocal0@{classLocal0}}\item[{\em 
class\-Local0\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1c44ea4afbff7b7d8efcade231fa2aa54d}
}]\index{classLocal1@{classLocal1}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classLocal1@{classLocal1}}\item[{\em 
class\-Local1\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1c1225cd34f8a1709d23e6d896b942a333}
}]\index{classLocal2@{classLocal2}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classLocal2@{classLocal2}}\item[{\em 
class\-Local2\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1c66f3a33e0270bcd53a56478b4f23cfe4}
}]\index{classLocal3@{classLocal3}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classLocal3@{classLocal3}}\item[{\em 
class\-Local3\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1c74ae4394d23ba6032c3f978370e2daba}
}]\index{classLocal4@{classLocal4}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classLocal4@{classLocal4}}\item[{\em 
class\-Local4\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1cf50fdf9753a8d1f559dbff587ccdb986}
}]\index{classLocal5@{classLocal5}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classLocal5@{classLocal5}}\item[{\em 
class\-Local5\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1cdd15541cddf1e67ee2b6b66ffe81e077}
}]\index{classLocal6@{classLocal6}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classLocal6@{classLocal6}}\item[{\em 
class\-Local6\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1c129ffec69e592d55af991d655d2478f7}
}]\index{classLocal7@{classLocal7}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!classLocal7@{classLocal7}}\item[{\em 
class\-Local7\label{classost_1_1_slog_b4f915f1931605df91e4b453d6cdae1cbdd079dc864ecc3c6e8fe1241483b15c}
}]\end{description}
\end{Desc}

\index{ost::Slog@{ost::Slog}!Level@{Level}}
\index{Level@{Level}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf ost::Slog::Level}}\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7a}


\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{levelEmergency@{levelEmergency}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!levelEmergency@{levelEmergency}}\item[{\em 
level\-Emergency\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7a1acd6522fbb9d8790867d5c51ea9b008}
}]\index{levelAlert@{levelAlert}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!levelAlert@{levelAlert}}\item[{\em 
level\-Alert\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7a4862c8c52a86210064d2d6360db6b18d}
}]\index{levelCritical@{levelCritical}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!levelCritical@{levelCritical}}\item[{\em 
level\-Critical\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7abe7a4f15d9ea484e01831a7dc3e71926}
}]\index{levelError@{levelError}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!levelError@{levelError}}\item[{\em 
level\-Error\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7af82cf7bb589d776186fbd0ab7b345f6e}
}]\index{levelWarning@{levelWarning}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!levelWarning@{levelWarning}}\item[{\em 
level\-Warning\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7a568c02bbd98a58f508a83334c65ffcea}
}]\index{levelNotice@{levelNotice}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!levelNotice@{levelNotice}}\item[{\em 
level\-Notice\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7ada39f730e92fdec6cad3616fa3567c95}
}]\index{levelInfo@{levelInfo}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!levelInfo@{levelInfo}}\item[{\em 
level\-Info\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7a4a5387e1f48ef86841a807f6687d3d9c}
}]\index{levelDebug@{levelDebug}!ost::Slog@{ost::Slog}}\index{ost::Slog@{ost::Slog}!levelDebug@{levelDebug}}\item[{\em 
level\-Debug\label{classost_1_1_slog_47ef36225607dba90b4be5012daccd7a7d9ce368944e6852d05730c269432b3a}
}]\end{description}
\end{Desc}



\subsection{Constructor \& Destructor Documentation}
\index{ost::Slog@{ost::Slog}!Slog@{Slog}}
\index{Slog@{Slog}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Slog::Slog (void)}\label{classost_1_1_slog_4d98795e4bfe373f8195e672fd6b7ec1}


Default (and only) constructor. 

The default log level is set to SLOG\_\-DEBUG. There is no default log facility set. One should be set before attempting any output. This is done by the {\tt {\bf open()}{\rm (p.\,\pageref{classost_1_1_slog_c60c59bbeb39fb9cd10d39585f2b876f})}} or the {\tt {\bf operator()(const char$\ast$, Class, Level)}{\rm (p.\,\pageref{classost_1_1_slog_cfa37896109771ec5fea05754012f76a})}} functions. \index{ost::Slog@{ost::Slog}!~Slog@{$\sim$Slog}}
\index{~Slog@{$\sim$Slog}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual ost::Slog::$\sim$Slog (void)\hspace{0.3cm}{\tt  [virtual]}}\label{classost_1_1_slog_fee001983cc6510404d5d269e48eab7f}




\subsection{Member Function Documentation}
\index{ost::Slog@{ost::Slog}!alert@{alert}}
\index{alert@{alert}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::alert (void)\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_203d4847e5f1c05df43a46de74206a32}


\index{ost::Slog@{ost::Slog}!alert@{alert}}
\index{alert@{alert}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::alert (const char $\ast$ {\em format},  {\em ...})}\label{classost_1_1_slog_461eace80a1963d80eda14926c4143cd}


Print a formatted syslog string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]string. \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!clogEnable@{clogEnable}}
\index{clogEnable@{clogEnable}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::clog\-Enable (bool {\em f} = {\tt true})\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_7529ca8421ee3672a75fea37736cc94f}


Enables or disables the echoing of the messages to clog in addition to the syslog daemon. 

This is enabled by the default class constructor. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em f}]true to enable, false to disable clog output \end{description}
\end{Desc}
\begin{Desc}
\item[Examples: ]\par
{\bf slog\-Test.cpp}.\end{Desc}
\index{ost::Slog@{ost::Slog}!close@{close}}
\index{close@{close}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::close (void)}\label{classost_1_1_slog_4f0c20efe448a79cdad108e9c058e0a3}


\index{ost::Slog@{ost::Slog}!critical@{critical}}
\index{critical@{critical}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::critical (void)\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_5ad3a15701be1fcc118b8fa1319b881f}


\index{ost::Slog@{ost::Slog}!critical@{critical}}
\index{critical@{critical}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::critical (const char $\ast$ {\em format},  {\em ...})}\label{classost_1_1_slog_7b0ab8d8b8a87becbd9ce1e477d63628}


Print a formatted syslog string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]string. \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!debug@{debug}}
\index{debug@{debug}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::debug (void)\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_fe897077c2039e27f25296563adbf3d2}


\index{ost::Slog@{ost::Slog}!debug@{debug}}
\index{debug@{debug}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::debug (const char $\ast$ {\em format},  {\em ...})}\label{classost_1_1_slog_69e63ef2321f6e8ab626cf107554457c}


Print a formatted syslog string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]string. \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!emerg@{emerg}}
\index{emerg@{emerg}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::emerg (void)\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_809268f1637b14c2af84376224e35867}


\index{ost::Slog@{ost::Slog}!emerg@{emerg}}
\index{emerg@{emerg}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::emerg (const char $\ast$ {\em format},  {\em ...})}\label{classost_1_1_slog_7c1abca7e80c800ad4a3102afad95a54}


Print a formatted syslog string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]string. \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!error@{error}}
\index{error@{error}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::error (void)\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_6588a9a357b37783786e429f7003ca6a}


\index{ost::Slog@{ost::Slog}!error@{error}}
\index{error@{error}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::error (const char $\ast$ {\em format},  {\em ...})}\label{classost_1_1_slog_151df1126e5803662d7b00961defb615}


Print a formatted syslog string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]string. \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!info@{info}}
\index{info@{info}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::info (void)\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_aeba8f042560a4744a4caac4b6dc9b4a}


\index{ost::Slog@{ost::Slog}!info@{info}}
\index{info@{info}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::info (const char $\ast$ {\em format},  {\em ...})}\label{classost_1_1_slog_1acf3a15b587c9a0db28adab3fd5deb9}


Print a formatted syslog string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]string. \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!level@{level}}
\index{level@{level}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::level ({\bf Level} {\em enable})\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_7f4111d989cee472f4d035852a80bcdf}


Sets the logging level. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em enable}]is the logging level to use for further output \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!notice@{notice}}
\index{notice@{notice}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::notice (void)\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_5f80262e108f7b3892aeb0f12e72a7ea}


\index{ost::Slog@{ost::Slog}!notice@{notice}}
\index{notice@{notice}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::notice (const char $\ast$ {\em format},  {\em ...})}\label{classost_1_1_slog_492f7d432e2566b6bebc41f41b315393}


Print a formatted syslog string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]string. \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!open@{open}}
\index{open@{open}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::open (const char $\ast$ {\em ident}, {\bf Class} {\em grp} = {\tt classUser})}\label{classost_1_1_slog_c60c59bbeb39fb9cd10d39585f2b876f}


(re)opens the output stream. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ident}]The identifier portion of the message sent to the syslog daemon. \item[{\em grp}]The log facility the message is sent to \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!operator()@{operator()}}
\index{operator()@{operator()}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::operator() (void)}\label{classost_1_1_slog_090f7755f377e867caaa42e458f09e73}


Does nothing except return $\ast$this. 

\index{ost::Slog@{ost::Slog}!operator()@{operator()}}
\index{operator()@{operator()}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::operator() ({\bf Level} {\em level}, {\bf Class} {\em grp} = {\tt classDefault})}\label{classost_1_1_slog_9a1392f01947ba92ae6c5c17bf29aec6}


Changes the log level and class to use for subsequent output. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em level}]The log level of the message \item[{\em grp}]The log facility the message is sent to \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!operator()@{operator()}}
\index{operator()@{operator()}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::operator() (const char $\ast$ {\em ident}, {\bf Class} {\em grp} = {\tt classUser}, {\bf Level} {\em level} = {\tt levelError})}\label{classost_1_1_slog_cfa37896109771ec5fea05754012f76a}


Sets the log identifier, level, and class to use for subsequent output. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ident}]The identifier portion of the message \item[{\em grp}]The log facility the message is sent to \item[{\em level}]The log level of the message \end{description}
\end{Desc}
\index{ost::Slog@{ost::Slog}!overflow@{overflow}}
\index{overflow@{overflow}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Slog::overflow (int {\em c})\hspace{0.3cm}{\tt  [protected]}}\label{classost_1_1_slog_50dc69d9bd257bdd2333180144e93bb2}


This is the streambuf function that actually outputs the data to the device. 

Since all output should be done with the standard ostream operators, this function should never be called directly. \index{ost::Slog@{ost::Slog}!warn@{warn}}
\index{warn@{warn}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Slog}\& ost::Slog::warn (void)\hspace{0.3cm}{\tt  [inline]}}\label{classost_1_1_slog_4b3ac21264a627f76ef21c304575acc9}


\index{ost::Slog@{ost::Slog}!warn@{warn}}
\index{warn@{warn}!ost::Slog@{ost::Slog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Slog::warn (const char $\ast$ {\em format},  {\em ...})}\label{classost_1_1_slog_25596070ef3d54bfe4c2b1b37ce91cdf}


Print a formatted syslog string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em format}]string. \end{description}
\end{Desc}


The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
{\bf slog.h}\end{CompactItemize}