RFLOG.SetLevel

boolean SetLevel(short nLevel)

Function SetLevel(nLevel As Integer) As Boolean
Sets the default log level for the subsequent LogMsg calls.

Return value
True=successful.

Parameters

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
    wsRfLog.LogMsg sMsg
End Sub

See also    RFLOG, LogMsg