Руководство Разработчика для Cisco Cisco Computer Telephony Integration OS 8.5
12-35
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 12 Helper Classes
LogWrapper Class (.NET and Java Only)
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.
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.
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.