Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 506
   
12-35
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(1)
Chapter 12      Helper Classes
LogWrapper Class (.NET and Java Only)
.NET: void RemoveLogListener (LogEventHandler rListener)
Parameters
rListener
Java
: Reference to the listener to be removed.
.NET:Reference to a LogManager LogEventHandler delegate to be removed.
Return Values
None.
Trace
The Trace method sends a trace message to the central LogManager with the specified trace mask. If the 
trace mask set on the Logger contains all the bits in the trace mask that is passed into this method, the 
LogManager will send the trace string to all log listeners.
Syntax
int Trace(int iTraceMask, String sMessage)
Parameters
traceMask 
Trace mask for this message. 
traceMessage 
String containing trace message. 
Return Values
int 
0 if traced; -1 if not traced. 
LogWrapper Class (.NET and Java Only)
The LogWrapper class instantiates the default logging mechanism. By default, the LogWrapper writes 
trace messages to System.Console.Out. If you instantiate the LogWrapper by passing it a filename, then 
the LogWrapper writes trace messages to the specified file.