Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 490
   
12-36
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 12      Helper Classes
LogWrapper Class (.NET and Java Only)
Methods
 lists the LogWrapper class methods.
LogWrapper() Constructor
The LogWrapper constructor creates a new LogWrapper object that writes tracing messages to 
System.Console.Out. This constructor also creates an instance of the LogManager, if one does not 
already exist. If you are using the .NET CIL, call the Dispose method to release system resources when 
you no longer need the LogWrapper.
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 is 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 is created. 
GetMaxNumberOfFiles (.NET Only)
Obtains the current number of log files threshold beyond 
which older files are 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 is used. 
SetMaxDaysBeforeExpire
Changes the current log file age threshold beyond which 
the active log file is rolled over into a new file regardless 
of file size 
SetMaxFileSize
Changes the current log file size threshold beyond which a 
new file is created.
 
SetMaxNumberOfFiles
Changes the current number of log files threshold beyond 
which older files are 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.