Objective Systems, Inc.  

ootrace.h File Reference

This file defines the trace functionality. More...

#include "ooCommon.h"

Go to the source code of this file.

Defines

#define OOTRCLVLERR   1
#define OOTRCLVLWARN   2
#define OOTRCLVLINFO   3
#define OOTRCLVLDBGA   4
#define OOTRCLVLDBGB   5
#define OOTRCLVLDBGC   6
#define TRACELVL   1
#define OOTRACEERR1(a)   ooTrace(OOTRCLVLERR,a)
#define OOTRACEERR2(a, b)   ooTrace(OOTRCLVLERR,a,b)
#define OOTRACEERR3(a, b, c)   ooTrace(OOTRCLVLERR,a,b,c)
#define OOTRACEERR4(a, b, c, d)   ooTrace(OOTRCLVLERR,a,b,c,d)
#define OOTRACEWARN1(a)   ooTrace(OOTRCLVLWARN,a)
#define OOTRACEWARN2(a, b)   ooTrace(OOTRCLVLWARN,a,b)
#define OOTRACEWARN3(a, b, c)   ooTrace(OOTRCLVLWARN,a,b,c)
#define OOTRACEWARN4(a, b, c, d)   ooTrace(OOTRCLVLWARN,a,b,c,d)
#define OOTRACEINFO1(a)   ooTrace(OOTRCLVLINFO, a)
#define OOTRACEINFO2(a, b)   ooTrace(OOTRCLVLINFO,a,b)
#define OOTRACEINFO3(a, b, c)   ooTrace(OOTRCLVLINFO,a,b,c)
#define OOTRACEINFO4(a, b, c, d)   ooTrace(OOTRCLVLINFO,a,b,c,d)
#define OOTRACEINFO5(a, b, c, d, e)   ooTrace(OOTRCLVLINFO,a,b,c,d,e)
#define OOTRACEINFO6(a, b, c, d, e, f)   ooTrace(OOTRCLVLINFO,a,b,c,d,e, f)
#define OOTRACEDBGA1(a)   ooTrace(OOTRCLVLDBGA,a)
#define OOTRACEDBGA2(a, b)   ooTrace(OOTRCLVLDBGA,a,b)
#define OOTRACEDBGA3(a, b, c)   ooTrace(OOTRCLVLDBGA,a,b,c)
#define OOTRACEDBGA4(a, b, c, d)   ooTrace(OOTRCLVLDBGA,a,b,c,d)
#define OOTRACEDBGA5(a, b, c, d, e)   ooTrace(OOTRCLVLDBGA,a,b,c,d,e)
#define OOTRACEDBGB1(a)   ooTrace(OOTRCLVLDBGB,a)
#define OOTRACEDBGB2(a, b)   ooTrace(OOTRCLVLDBGB,a,b)
#define OOTRACEDBGB3(a, b, c)   ooTrace(OOTRCLVLDBGB,a,b,c)
#define OOTRACEDBGB4(a, b, c, d)   ooTrace(OOTRCLVLDBGB,a,b,c,d)
#define OOTRACEDBGC1(a)   ooTrace(OOTRCLVLDBGC,a)
#define OOTRACEDBGC2(a, b)   ooTrace(OOTRCLVLDBGC,a,b)
#define OOTRACEDBGC3(a, b, c)   ooTrace(OOTRCLVLDBGC,a,b,c)
#define OOTRACEDBGC4(a, b, c, d)   ooTrace(OOTRCLVLDBGC,a,b,c,d)
#define OOTRACEDBGC5(a, b, c, d, e)   ooTrace(OOTRCLVLDBGC,a,b,c,d,e)

Functions

EXTERN void ooSetTraceThreshold (OOUINT32 traceLevel)
 This function is used to set the trace level.
EXTERN void ooTrace (OOUINT32 traceLevel, const char *fmtspec,...)
 This function is used to write the messages to the trace file.
void ooTraceLogMessage (const char *logMessage)
 Helper function for the trace function.
void ooChangeIPToNWOrder (char *internetIP, char *networkIP)
int ooLogAsn1Error (int stat, const char *fname, int lno)


Detailed Description

This file defines the trace functionality.

Definition in file ootrace.h.


Function Documentation

EXTERN void ooSetTraceThreshold ( OOUINT32  traceLevel  ) 

This function is used to set the trace level.

Parameters:
traceLevel New trace level. Various values are: OOTRCLVLERR, OOTRCLVLWARN, OOTRCLVLINFO, OOTRCLVLDBGA, OOTRCLVLDBGB, OOTRCLVLDBGC
Returns:
None

EXTERN void ooTrace ( OOUINT32  traceLevel,
const char *  fmtspec,
  ... 
)

This function is used to write the messages to the trace file.

Parameters:
traceLevel Trace level for the message.
fmtspec Printf style format spec.
... Printf style variable list of arguments
Returns:
- none

void ooTraceLogMessage ( const char *  logMessage  ) 

Helper function for the trace function.

This function performs actual writing to file.

Parameters:
logMessage Log message to be writted to file.
Returns:
- none


This file was last modified on 28 May 2010.
Objective Open H.323 Stack, 0.9.1