\section{Axis\-Trace Class Reference}
\label{classAxisTrace}\index{AxisTrace@{AxisTrace}}
This is class is used to log messages when AXISTRACE is defined. 


{\tt \#include $<$Axis\-Trace.h$>$}

\subsection*{Public Methods}
\begin{CompactItemize}
\item 
int {\bf logaxis} (const char $\ast$s\-Log, int level, char $\ast$arg2, int arg3)
\item 
int {\bf logaxis} (const char $\ast$s\-Log1, const char $\ast$s\-Log2, int level, char $\ast$arg3, int arg4)
\item 
int {\bf logaxis} (const char $\ast$s\-Log1, const int n\-Log2, int level, char $\ast$arg3, int arg4)
\item 
int {\bf logaxis} (const char $\ast$s\-Log1, const double d\-Log2, int level, char $\ast$arg3, int arg4)
\item 
int {\bf trace} (const char $\ast$pch\-Log)
\item 
int {\bf open\-File} ()
\item 
int {\bf open\-File\-By\-Client} ()
\end{CompactItemize}


\subsection{Detailed Description}
This is class is used to log messages when AXISTRACE is defined.

writing to the log could be disabled by commenting the line  define ENABLE\_\-AXISTRACE of Axisconfig.h.  \begin{Desc}
\item[Author: ]\par
Damitha Kumarage ({\tt damitha@opensource.lk}, {\tt damitha@jkcsworld.com}) \end{Desc}




\subsection{Member Function Documentation}
\index{AxisTrace@{Axis\-Trace}!logaxis@{logaxis}}
\index{logaxis@{logaxis}!AxisTrace@{Axis\-Trace}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Axis\-Trace::logaxis (const char $\ast$ {\em s\-Log1}, const double {\em d\-Log2}, int {\em level}, char $\ast$ {\em arg3}, int {\em arg4})}\label{classAxisTrace_a5}


This is called in writing to the log file whose path is specified in  \$AXIS\_\-HOME/axiscpp.c $\ast$ onf file. This method is used when the caller pass first argument as string  and the second argument $\ast$ as double. First is his own message. The other may be to print a trace value. User can also specify the  severity of the messag $\ast$ e by assigning level argument to one of CRITICAL, WARN, INFO or TRIVIAL. \begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
s\-Log1}]string message one \item[{\em 
s\-Log2}]string message two  \item[{\em 
level}]severity level \item[{\em 
arg3}]file name \item[{\em 
arg4}]line number \end{description}
\end{Desc}
\begin{Desc}
\item[Returns: ]\par
The status which indicates whether the operation is success (AXIS\_\-SUCCESS) or not (AXIS\_\-FAIL). \end{Desc}
\index{AxisTrace@{Axis\-Trace}!logaxis@{logaxis}}
\index{logaxis@{logaxis}!AxisTrace@{Axis\-Trace}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Axis\-Trace::logaxis (const char $\ast$ {\em s\-Log1}, const int {\em n\-Log2}, int {\em level}, char $\ast$ {\em arg3}, int {\em arg4})}\label{classAxisTrace_a4}


This is called in writing to the log file whose path is specified in  \$AXIS\_\-HOME/axiscpp.c $\ast$ onf file. This method is used when the caller pass first argument as string and  the second argument $\ast$ as long. First is his own message. The other may be to print a trace value. User can also specify the  severity of the messag $\ast$ e by assigning level argument to one of CRITICAL, WARN, INFO or TRIVIAL. \begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
s\-Log1}]string message one \item[{\em 
s\-Log2}]string message two  \item[{\em 
level}]severity level \item[{\em 
arg3}]file name \item[{\em 
arg4}]line number \end{description}
\end{Desc}
\begin{Desc}
\item[Returns: ]\par
The status which indicates whether the operation is success  (AXIS\_\-SUCCESS) or not (AXIS\_\-FAIL). \end{Desc}
\index{AxisTrace@{Axis\-Trace}!logaxis@{logaxis}}
\index{logaxis@{logaxis}!AxisTrace@{Axis\-Trace}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Axis\-Trace::logaxis (const char $\ast$ {\em s\-Log1}, const char $\ast$ {\em s\-Log2}, int {\em level}, char $\ast$ {\em arg3}, int {\em arg4})}\label{classAxisTrace_a3}


This is called in writing to the log file whose path is specified in  \$AXIS\_\-HOME/axiscpp.c $\ast$ onf file. This method is used when the caller has two string messages  as arguments. One may be his $\ast$own message. The other may be to print a trace value. User can also specify the  severity of the messag $\ast$e by assigning level argument to one of CRITICAL, WARN, INFO or TRIVIAL. \begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
s\-Log1}]string message one \item[{\em 
s\-Log2}]string message two  \item[{\em 
level}]severity level \item[{\em 
arg3}]file name \item[{\em 
arg4}]line number \end{description}
\end{Desc}
\begin{Desc}
\item[Returns: ]\par
The status which indicates whether the operation is success  (AXIS\_\-SUCCESS) or not $\ast$ (AXIS\_\-FAIL). \end{Desc}
\index{AxisTrace@{Axis\-Trace}!logaxis@{logaxis}}
\index{logaxis@{logaxis}!AxisTrace@{Axis\-Trace}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Axis\-Trace::logaxis (const char $\ast$ {\em s\-Log}, int {\em level}, char $\ast$ {\em arg2}, int {\em arg3})}\label{classAxisTrace_a2}


This is called in writing to the log file whose path is specified in  \$AXIS\_\-HOME/axiscpp.conf file. This method is used when the caller has only one  string message as argument. User can also specify the severity of the message by assigning level  argument to one of CRITICAL, WARN, INFO or TRIVIAL. \begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
s\-Log}]string message \item[{\em 
level}]severity level \item[{\em 
arg2}]file name \item[{\em 
arg3}]line number \end{description}
\end{Desc}
\begin{Desc}
\item[Returns: ]\par
The status which indicates whether the operation is success  (AXIS\_\-SUCCESS) or not (AXIS\_\-FAIL). \end{Desc}
\index{AxisTrace@{Axis\-Trace}!openFile@{openFile}}
\index{openFile@{openFile}!AxisTrace@{Axis\-Trace}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Axis\-Trace::open\-File ()}\label{classAxisTrace_a7}


Log file is opened for logging server side log messages

The file is created( if one is already not there) with the name and  path specified in \$AXIS\_\-HOME/axiscpp.conf file when web server loads.

\begin{Desc}
\item[Returns: ]\par
The status which indicates whether the operation is successful (AXIS\_\-SUCCESS) or not (AXIS\_\-FAIL). \end{Desc}
\index{AxisTrace@{Axis\-Trace}!openFileByClient@{openFileByClient}}
\index{openFileByClient@{openFileByClient}!AxisTrace@{Axis\-Trace}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Axis\-Trace::open\-File\-By\-Client ()}\label{classAxisTrace_a8}


Log file is opened for logging client side log messages

The file is created with the name Client\-Axis\-Log if one is not  already in the current path.

\begin{Desc}
\item[Returns: ]\par
The status which indicates whether the operation is success  (AXIS\_\-SUCCESS) or not (AXIS\_\-FAIL). \end{Desc}
\index{AxisTrace@{Axis\-Trace}!trace@{trace}}
\index{trace@{trace}!AxisTrace@{Axis\-Trace}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Axis\-Trace::trace (const char $\ast$ {\em pch\-Log})}\label{classAxisTrace_a6}


Writes the given string to the standard console.  This method is useful when using the standalone server. \begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
pch\-Log}]The given string which will be printed to the  standard console. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns: ]\par
The status which indicates whether the operation is success  (AXIS\_\-SUCCESS) or not (AXIS\_\-FAIL). \end{Desc}


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