Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 668
 
B-5
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Appendix B      CTI OS Logging
Java CIL Logging Utilities
Syntax
Logger()
int Trace(long nMsgTraceMask, String message)
long GetTraceMask()
boolean IsTraceMaskEnabled(long nMsgTraceMask)
void addLogListener(ILogEvents logEvents
where logEvents implements the ILogEvents interface.
void removeLogListener(ILogEvents logEvents)
where logEvents implements the ILogEvents interface.
LogEventsAdapter
This is a wrapper class around the Logger facility. A custom application that is 
interested in tracing but doesn’t want to implement its own ILogEvents interface 
can create an instance of this class. The adapter class provides two constructors, 
a default one that will automatically log to the Java console and one that takes in 
an output filename.
addLogListener
Subscribe to receive LogEvents.
removeLogListener
Unsubscribe from receiving LogEvents.
Method
Description
LogEventsAdapter
Public constructor
startLogging
Start receiving LogEvents
stopLogging
Stop receiving LogEvents
processLogEvent
Handles a LogEvent
finalize
Does some cleanup