Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 640
Appendix B      CTI OS Logging
Logging and Tracing (.NET)
B-6
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
string msg)
{
if ( m_logger.IsTraceMaskEnabled(traceLevel) )
{
string tracsMsg = string.Format("{0}: {1}", methodName,
msg) ;
m_logger.Trace(traceLevel, msg) ;
}
}
The CTI Toolkit Combo Desktop .NET sample application included with the CTI 
OS toolkit shows how to use the CIL's LogWrapper class in the context of a 
complex softphone application.
 lists the trace masks available in the .NET CIL.
Table B-1
Trace Masks in .NET CIL
TRACE_MASK_ARGS_LOGIC
Logic trace for Args and 
Arguments objects.
TRACE_LEVEL_EVENT_REQ
Mask for logic and parameters 
for general events and requests.
TRACE_LEVEL_MAJOR
Mask for major events.
TRACE_LEVEL_MEMORY
Mask for very low level 
operations.
TRACE_LEVEL_METHOD
Mask for method entry and exit.
TRACE_MASK_ALWAYS
Always print
TRACE_MASK_ARGREFCOUNTING
Addref/release, refcount for 
Arg and Arguments objects.
TRACE_MASK_ARGS_METHODS
Method entry/exit for 
Arguments objects
TRACE_MASK_CONNECTION
Connection tracing on or off
TRACE_MASK_CRITICAL
Critical error
TRACE_MASK_EVENTFILTER
All logic from the EventFilter
TRACE_MASK_EVT_REQ_AVG
Evants and requests of average 
importance.