SbrTrace and ScriptTraceLevel
The name of the .jsi or .aut file in which the script is defined
The current line number
Listings of selected program variable values
Listings of selected RADIUS attribute values (for LDAP scripts only)
You have two options to enable tracing of your scripts.
Manual tracing—You can set the ScriptTraceLevel parameter in the [Settings] section of the script file to 1 and call the SbrTrace() function from within your script. This causes a single script trace frame to appear in the log from the point in your script where the SbrTrace() function was called.
Enabling script tracing for a single script file has a performance impact on all scripts running on Steel-Belted Radius Carrier, whether or not script tracing is enabled for those files. For this reason and because of large volume of log information produced, the use of script tracing is not recommended for production environments.
This example lists a small script and a portion of the automatic script trace generated from it.
The attr keyword is supported only for LDAP authentication scripts. If this example is configured as a realm selection or attribute filter script, the attr = User-Name entry in the [ScriptTrace] section is ignored.
Script traces appear in the log if the server log level is greater than or equal to the trace log level. The server log level is determined by the LogLevel parameter of the [Configuration] section in radius.ini. The trace log level is determined by the LogLevel parameter in the [Settings] section of the script file. For more information, see [Settings] Section.
You can also use the optional LogLevel argument to specify the log level explicitly in the call to SbrTrace():
In this example, the argument trace appears unconditionally in the server log regardless of the script file LogLevel setting.
For more information about the SbrTrace 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.