Partager via


LogMessage Function

  Microsoft Speech Technologies Homepage

Provides a way to log diagnostic messages about events that occur while speech applications are running.

LogMessage(id, message)

Remarks

The LogMessage function provides an application with a way to log diagnostic messages to the same location as other component objects. For example, listen, dtmf, and other elements can all send log messages to a server simultaneously or separately. In order to allow an administrator to monitor a system through a single, centralized point, applications are able to send messages to the same location at any time.

When debugging applications using either the Speech Add-in for Microsoft Internet Explorer, or the Speech Add-in for Microsoft Pocket Internet Explorer, logged messages are sent to the Speech Debugging Console. The LogMessage function is implemented in Telephony Application Services as the SaltLogMessage event class and is included in several of the event categories used in the Speech Application Log Analysis Tools. Messages from the LogMessage function appear in the Messages log analysis default report.

Example

The following code demonstrates the use of the LogMessage function.

LogMessage("SYSTEM_FAILURE", "Prompt database is unavailable.")

See Also

SALT Programmer's Reference | Raising Events from Application Script