Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 640
12-49
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.0(0)
 
Chapter 12      Helper Classes
LogWrapper Class (.NET and Java Only)
Methods
 list the LogWrapper class methods.
Table 12-11 LogWrapper Class Methods 
Method
Description
Dispose
Releases system resources used by the 
LogWrapper. (.NET only)
GetMaxDaysBeforeExpire 
(.NET Only)
Obtains the current log file age threshold 
beyond which the active log file will be rolled 
over into a new file regardless of file size 
GetMaxFileSize(.NET only)
Obtains the current log file size threshold 
beyond which a new file will be created. 
GetMaxNumberOfFiles (.NET 
Only)
Obtains the current number of log files 
threshold beyond which older files will begin 
to be deleted. 
GetTraceMask
Gets the current trace mask. 
LogWrapper()
 
Constructor
Creates a new LogWrapper object that writes 
tracing messages to System.Console.Out.
LogWrapper (String fileName)
 
Constructor
Creates a new LogWrapper object that traces 
to the file specified in the fileName 
parameter.
LogWrapper (string, int, int, int) Creates a new LogWrapper object that traces 
to the file specified in the fileName parameter 
and sets all the provided tracing properties. If 
the corresponding parameter value is set to 0 
then the default value will be used. 
SetMaxDaysBeforeExpire
Changes the current log file age threshold 
beyond which the active log file will be rolled 
over into a new file regardless of file size 
SetMaxFileSize
Changes the current log file size threshold 
beyond which a new file will be created.
 
SetMaxNumberOfFiles
Changes the current number of log files 
threshold beyond which older files will begin 
to be deleted.