To write text messages to the Steel-Belted Radius Carrier log, call the SbrWriteToLog() function from the script.
The log message appears if the server log level is greater than or equal to the message log level. The server log level is determined by the LogLevel parameter of the [Configuration] section in radius.ini. The message log level is determined by the LogLevel parameter in the [Settings] section of the script file, as shown in the fragment from the FilterScript.jsi below. For more information, see [Settings] Section.
You can also use an optional LogLevel argument to specify the log level explicitly in the call to SbrWriteToLog():
In this example, the message log level is set to the value of 1. The message appears in the log if the server log level is 1 or greater.
For more information about the SbrWriteToLog() function, see Logging and Diagnostic Methods. For more information about the server LogLevel setting, see the radius.ini file in the SBR Carrier Reference Guide.