Руководство Разработчика для Cisco Cisco Computer Telephony Integration OS 8.5
12-36
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)
Methods
list the LogWrapper class methods.
Table 12-11
LogWrapper Class Methods
Method
Description
Dispose
Releases system resources used by the
LogWrapper. (.NET only)
LogWrapper. (.NET only)
GetMaxDaysBeforeExpire
(.NET Only)
(.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
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.
beyond which a new file will be created.
GetMaxNumberOfFiles (.NET
Only)
Only)
Obtains the current number of log files
threshold beyond which older files will begin
to be deleted.
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.
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.
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.
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
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.
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.
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.
settings contained within.
WriteTraceLine
Prints a string to the active trace file or to
System.Console.Out if no active trace file
exists.
System.Console.Out if no active trace file
exists.