RFLOG.LogMsg
RFLOG.LogMsgEx

boolean LogMsg(BSTR sMsg)
boolean LogMsgEx(short nLevel, BSTR sMsg)

Function LogMsg(sMsg As String) As Boolean
Sends the message to the log file and the WSAdm log viewer with the default log level.

Function LogMsgEx(nLevel As Integer, sMsg As String) As Boolean
Sends the message to the log file and the WSAdm log viewer with the specified log level.

Return value
True=successful.

Parameters

sMsg
    Data to log (text string).

nLevel
    Log level. If this level is greater than the log filter set in the server (see administrator WSAdm & server configuration) the data is not sent to the log file. Set this level to a low value (10) for severe errors, and to a high value for comments or warnings (verbose) (90).

Example

Public wsRfLog As New RFLOG
...
wsRfLog.SetLevel 50
...
Sub LogMsg(sMsg As String)
    ' Log data to file (normal)
    wsRfLog.LogMsg sMsg
End Sub

Sub LogMsgErr(sMsg As String)
    ' Log data to file (errors)
    wsRfLog.LogMsgEx 10, sMsg
End Sub

See also    RFLOG, SetLevel