ami_TraceCode

Type

Declaration

typedef enum
 { AMI_INFO    =  1, 
   AMI_WARNING =  2, 
   AMI_ERROR   =  4, 
   AMI_DEBUG   =  8, 
   AMI_AMI     = 16, 
   AMI_STAMP   = 32, 
   AMI_ALL     = 0x7FFFFFFF 
 } ami_TraceCode;

Purpose

AMI C API trace levels. All trace messages output by the AMI C API are classified under one of the following trace levels. When a trace message is generated it is passed to the ami_TraceHandler of the associated AMI session only if the corresponding trace level is enabled. This allows for programmatic control of the level of tracing performed.

These values may be OR'ed together when used as arguments in functions that take an ami_TraceCode.

Trace Levels

 

Level

Description

AMI_ALL

This is a convenience value for enabling or disabling all levels.

AMI_AMI

This trace level enables low level tracing of AMI operations. This level aids the investigation of problems related to AMI and should not be enabled under normal circumstances.

AMI_DEBUG

This level increases the detail of information in trace output to aid in investigation of problems. This level is for troubleshooting purposes only, and under normal circumstances should not be enabled.

AMI_ERROR

This level enables tracing of error messages. This level should be enabled at all times.

AMI_INFO

This level enables tracing of informational messages. This level can be enabled at all times.

AMI_STAMP

This level adds source file name and line number to trace messages to determine the exact source of trace messages. This level is for troubleshooting purposes only, and under normal circumstances should not be enabled.

AMI_WARNING

This level enables tracing of warning messages. This level can be enabled at all times.