WarningMessage Class
WarningMessage Class
Raised by: SALT application, Speech Controls
Base Class: ApplicationOperatorEvent
Derived Classes: None
WarningMessage provides a way for SALT application developers to send an entry to the Windows Event log for warning-level events.
Events in this category are sent to both the Windows Event log and the Trace log.
WarningMessage has the following properties:
Property |
Type |
Description |
---|---|---|
Message |
String |
A text string supplied by the developer that specifies the content of the message. |
Remarks
Events sent to the Windows Event log are visible to system administrators and operations staff. Message text for these events should contain clear information about the event, and in cases of warning– or error–level events, provide information about steps to take to resolve the situation.
Example
import Microsoft.SpeechServer.Messages; if ( WarningMessage.IsEnabled() ) { // Raise an operator-visible warning WarningMessage.Raise( "Call Center application warning: unable to open database with the name DB554433. The local data cache was used instead." ); }
See Also
Event Logging Class Hierarchy | Logging and Analyzing Events | CommonEvent | Event Filters | Filtering Logged Events