Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Examples  

AxisTrace Class Reference

This is class is used to log messages when AXISTRACE is defined. More...

#include <AxisTrace.h>

List of all members.

Public Methods

int logaxis (const char *sLog, int level, char *arg2, int arg3)
int logaxis (const char *sLog1, const char *sLog2, int level, char *arg3, int arg4)
int logaxis (const char *sLog1, const int nLog2, int level, char *arg3, int arg4)
int logaxis (const char *sLog1, const double dLog2, int level, char *arg3, int arg4)
int trace (const char *pchLog)
int openFile ()
int openFileByClient ()


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.

Author:
Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)


Member Function Documentation

int AxisTrace::logaxis const char *    sLog1,
const double    dLog2,
int    level,
char *    arg3,
int    arg4
 

This is called in writing to the log file whose path is specified in $AXIS_HOME/axiscpp.c * onf file. This method is used when the caller pass first argument as string and the second argument * 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 * e by assigning level argument to one of CRITICAL, WARN, INFO or TRIVIAL.

Parameters:
sLog1  string message one
sLog2  string message two
level  severity level
arg3  file name
arg4  line number
Returns:
The status which indicates whether the operation is success (AXIS_SUCCESS) or not (AXIS_FAIL).

int AxisTrace::logaxis const char *    sLog1,
const int    nLog2,
int    level,
char *    arg3,
int    arg4
 

This is called in writing to the log file whose path is specified in $AXIS_HOME/axiscpp.c * onf file. This method is used when the caller pass first argument as string and the second argument * 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 * e by assigning level argument to one of CRITICAL, WARN, INFO or TRIVIAL.

Parameters:
sLog1  string message one
sLog2  string message two
level  severity level
arg3  file name
arg4  line number
Returns:
The status which indicates whether the operation is success (AXIS_SUCCESS) or not (AXIS_FAIL).

int AxisTrace::logaxis const char *    sLog1,
const char *    sLog2,
int    level,
char *    arg3,
int    arg4
 

This is called in writing to the log file whose path is specified in $AXIS_HOME/axiscpp.c * onf file. This method is used when the caller has two string messages as arguments. One may be his *own message. The other may be to print a trace value. User can also specify the severity of the messag *e by assigning level argument to one of CRITICAL, WARN, INFO or TRIVIAL.

Parameters:
sLog1  string message one
sLog2  string message two
level  severity level
arg3  file name
arg4  line number
Returns:
The status which indicates whether the operation is success (AXIS_SUCCESS) or not * (AXIS_FAIL).

int AxisTrace::logaxis const char *    sLog,
int    level,
char *    arg2,
int    arg3
 

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.

Parameters:
sLog  string message
level  severity level
arg2  file name
arg3  line number
Returns:
The status which indicates whether the operation is success (AXIS_SUCCESS) or not (AXIS_FAIL).

int AxisTrace::openFile  
 

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.

Returns:
The status which indicates whether the operation is successful (AXIS_SUCCESS) or not (AXIS_FAIL).

int AxisTrace::openFileByClient  
 

Log file is opened for logging client side log messages

The file is created with the name ClientAxisLog if one is not already in the current path.

Returns:
The status which indicates whether the operation is success (AXIS_SUCCESS) or not (AXIS_FAIL).

int AxisTrace::trace const char *    pchLog
 

Writes the given string to the standard console. This method is useful when using the standalone server.

Parameters:
pchLog  The given string which will be printed to the standard console.
Returns:
The status which indicates whether the operation is success (AXIS_SUCCESS) or not (AXIS_FAIL).


The documentation for this class was generated from the following file:
Generated on Tue Jun 29 09:27:58 2004 for AxisC++ by doxygen1.2.18