AGI STK Util 11 Send comments on this topic.
AgELogMsgType Enumeration
See Also  Example





Description

Log message types.

Members

Member Value Description
eLogMsgDebug 0 Debugging message.
eLogMsgInfo 1 Informational message.
eLogMsgForceInfo 2 Informational message.
eLogMsgWarning 3 Warning message.
eLogMsgAlarm 4 Alarm message.

Remarks

These flags are set by the STK engine to indicate message severity. These flags are mostly valid in the context of STK. Container applications are free to interpret these flags at their convenience, and process them according to their specific logging capabilities.

Example

[Visual Basic .NET] Copy Code
Private Sub stkxApp_OnLogMessage(_
                            ByVal Message As String, _
                            ByVal MsgType As AGI.STKUtil.AgELogMsgType, _
                            ByVal ErrorCode As Integer, _
                            ByVal FileName As String, _
                            ByVal LineNo As Integer, _
                            ByVal DispID As AGI.STKUtil.AgELogMsgDispID) _
                    Handles stkxApp.OnLogMessage


    If MsgType = AGI.STKUtil.AgELogMsgType.eLogMsgAlarm Then
        ...
    ElseIf MsgType = AGI.STKUtil.AgELogMsgType.eLogMsgDebug Then
        ...
    ElseIf MsgType = AGI.STKUtil.AgELogMsgType.eLogMsgForceInfo Then
        ...
    ElseIf MsgType = AGI.STKUtil.AgELogMsgType.eLogMsgInfo Then
        ...

End Sub
© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1