\hypertarget{log_8h}{
\section{log.h File Reference}
\label{log_8h}\index{log.h@{log.h}}
}
Defines a message logging class.  


{\tt \#include $<$stdio.h$>$}\par


Include dependency graph for log.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=38pt]{log_8h__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=124pt]{log_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\hypertarget{log_8h_a0}{
\#define \hyperlink{log_8h_a0}{STATUS}\ int}
\label{log_8h_a0}

\begin{CompactList}\small\item\em For VXWORKS compatibility. \item\end{CompactList}\item 
\hypertarget{log_8h_a1}{
\#define \hyperlink{log_8h_a1}{OK}\ (0)}
\label{log_8h_a1}

\begin{CompactList}\small\item\em For VXWORKS compatibility. \item\end{CompactList}\item 
\hypertarget{log_8h_a2}{
\#define \hyperlink{log_8h_a2}{\_\-LOG}(level, status, msg)}
\label{log_8h_a2}

\begin{CompactList}\small\item\em Log message with zero arguments. \item\end{CompactList}\item 
\#define \hyperlink{log_8h_a3}{\_\-LOG1}(level, status, msg, p1)
\begin{CompactList}\small\item\em Log message with 1 arguments. \item\end{CompactList}\item 
\#define \hyperlink{log_8h_a4}{\_\-LOG2}(level, status, msg, p1, p2)
\begin{CompactList}\small\item\em Log message with 2 arguments. \item\end{CompactList}\item 
\hypertarget{log_8h_a5}{
\#define \hyperlink{log_8h_a5}{\_\-LOG3}(level, status, msg, p1, p2, p3)}
\label{log_8h_a5}

\begin{CompactList}\small\item\em Log message with 3 arguments. \item\end{CompactList}\item 
\hypertarget{log_8h_a6}{
\#define \hyperlink{log_8h_a6}{\_\-LOG2B}(level, status, msg, p1, p2)}
\label{log_8h_a6}

\begin{CompactList}\small\item\em Log binary representation with message. \item\end{CompactList}\item 
\hypertarget{log_8h_a7}{
\#define \hyperlink{log_8h_a7}{\_\-LOGBNDL}(level, status, msg, chnl, data)}
\label{log_8h_a7}

\begin{CompactList}\small\item\em Log binary rep of bundle data. \item\end{CompactList}\item 
\hypertarget{log_8h_a8}{
\#define \hyperlink{log_8h_a8}{\_\-ERRL}(status, msg)}
\label{log_8h_a8}

\begin{CompactList}\small\item\em Error message with zero arguments. \item\end{CompactList}\item 
\hypertarget{log_8h_a9}{
\#define \hyperlink{log_8h_a9}{\_\-ERRL1}(status, msg, p1)}
\label{log_8h_a9}

\begin{CompactList}\small\item\em Error message with 1 arguments. \item\end{CompactList}\item 
\#define \hyperlink{log_8h_a10}{\_\-ERRL2}(status, msg, p1, p2)
\begin{CompactList}\small\item\em Error message with 2 arguments. \item\end{CompactList}\item 
\hypertarget{log_8h_a11}{
\#define \hyperlink{log_8h_a11}{\_\-ERRL3}(status, msg, p1, p2, p3)}
\label{log_8h_a11}

\begin{CompactList}\small\item\em Error message with 3 arguments. \item\end{CompactList}\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{log_8h_a12}{
typedef enum \hyperlink{log_8h_a19}{\_\-LOG\_\-level} \hyperlink{log_8h_a12}{LOG\_\-level}}
\label{log_8h_a12}

\begin{CompactList}\small\item\em Typedef for enum \_\-LOG\_\-level. \item\end{CompactList}\item 
\hypertarget{log_8h_a13}{
typedef \_\-s\-Log $\ast$ \hyperlink{log_8h_a13}{log\-Handle}}
\label{log_8h_a13}

\begin{CompactList}\small\item\em Typedef for struct \_\-s\-Log. \item\end{CompactList}\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum \hyperlink{log_8h_a19}{\_\-LOG\_\-level} \{ \par
{\bf LOG\_\-DEBUG} =  4, 
\par
{\bf LOG\_\-INFO} =  3, 
\par
{\bf LOG\_\-WARN} =  2, 
\par
{\bf LOG\_\-ERROR} =  1, 
\par
{\bf LOG\_\-NONE} =  0
 \}
\begin{CompactList}\small\item\em Enumeration of the various logging levels from verbose to silent. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Defines a message logging class. 

\begin{Desc}
\item[Author:]Curt Brune -- \href{mailto:curt@slac.stanford.edu}{\tt curt@slac.stanford.edu}\end{Desc}
This class loosely models the syslog facility where messages are handled based on the current log level.

\subsection{Define Documentation}
\hypertarget{log_8h_a10}{
\index{log.h@{log.h}!_ERRL2@{\_\-ERRL2}}
\index{_ERRL2@{\_\-ERRL2}!log.h@{log.h}}
\subsubsection[\_\-ERRL2]{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-ERRL2(status, msg, p1, p2)}}
\label{log_8h_a10}


Error message with 2 arguments. 

\hypertarget{log_8h_a3}{
\index{log.h@{log.h}!_LOG1@{\_\-LOG1}}
\index{_LOG1@{\_\-LOG1}!log.h@{log.h}}
\subsubsection[\_\-LOG1]{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-LOG1(level, status, msg, p1)}}
\label{log_8h_a3}


Log message with 1 arguments. 

\hypertarget{log_8h_a4}{
\index{log.h@{log.h}!_LOG2@{\_\-LOG2}}
\index{_LOG2@{\_\-LOG2}!log.h@{log.h}}
\subsubsection[\_\-LOG2]{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-LOG2(level, status, msg, p1, p2)}}
\label{log_8h_a4}


Log message with 2 arguments. 

