SaltLogMessage Class
SaltLogMessage Class
Raised by: TAS
Base Class: ApplicationScriptEvent
Derived Classes: None
SaltLogMessage is raised by the platform whenever the application makes a call to the global LogMessage function defined by the SALT forum.
(For more information about SALT, see the SALT forum Web site at www.saltforum.org.)
SaltLogMessage has the following properties:
Property |
Type |
Description |
---|---|---|
ID |
String |
A unique ID for the message, defined by the application. Corresponds to the ID parameter of the SALT LogMessage function. |
Message |
String |
A text string supplied by the application that defines the message being raised. Corresponds to the message parameter of the SALT LogMessage function. |
Remarks
Microsoft Speech Server defines an additional set of classes to address application logging requirements. For more information, see Logging and Analyzing Events.
Example
The following code demonstrates the use of LogMessage. In this code example, the text string "ThreeSilencesBeforeAnyMumbles" is sent to the log when only silence is heard after three consecutive prompts. If the user response to the prompt cannot be recognized after three attempts, the text string "ThreeMumbles" is sent to the log.
function transferToOperatorThreeMumbles() { if (silenceOnly == true) LogMessage("QuickSilver", "ThreeSilencesBeforeAnyMumbles"); else LogMessage("QuickSilver", "ThreeMumbles"); siFailureCode.SetText( "ThreeMumbles", true); transferToOperator(); }
See Also
Logging and Analyzing Events | Filtering Logged Events | SDK Log Analysis Tools