Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
12-36
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
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. 
SetTraceMask
Sets the current trace mask. 
UpdateTraceSettings
Parses TraceConfig.cfg and imports the 
settings contained within. 
WriteTraceLine
Prints a string to the active trace file or to 
System.Console.Out if no active trace file 
exists.