Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation  Back up to About Overview 
  
[+] Expand All
[-] Collapse All

Global Object

The global object is available to all scripts at all times and does not need to be instantiated explicitly.

Logging and Diagnostic Methods

You can use the SbrWriteToLog(), SbrWriteToLogEx() and SbrTrace() methods to insert messages and trace information into the Steel-Belted Radius Carrier log file.

SbrWriteToLog()

Purpose

The SbrWriteToLog() method writes text strings to the Steel-Belted Radius Carrier log file.

Note: The SbrWriteToLog() method must not be used to log variable data.

Syntax

SbrWriteToLog(msg, [logLevel])

Parameters

Table 140: SbrWriteToLog() Parameters

Parameter

Description

logLevel

Specifies the log level of the message. The log level configured in Steel-Belted Radius Carrier must be greater than or equal to this value for the message to appear in the log. Optional log level value in range of 0-2.

msg

Specifies the message text to be logged.

Returns

Nothing.

Example

SbrWriteToLog(“Hello, world.”, 0);

SbrWriteToLogEx()

Purpose

The SbrWriteToLogEx() method supports a format specifier and up to five data arguments. This method must be used when writing variable data.

Syntax

SbrWriteToLogEx(loglevel, format specifier, var1,var2,var3,var4,var5)

Parameters

Table 141: SbrWriteToLogEx() Parameters

Parameter

Description

loglevel

Specifies the log level of the message. The log level configured in Steel-Belted Radius Carrier must be greater than or equal to this value for the message to appear in the log. Optional log level value in range of 0-2.

format specifier

Applies the format specifiers to the Steel-Belted Radius Carrier log.

var1,var2,var3,var4,var5

Specifies the variables that can be logged.

Returns

Nothing.

Example

var MSISDN = filter.Get(“Funk-SS7-MSISDN”);
SbrWriteToLogEx(2,"MSISDN=%x",MSISDN);

SbrTrace()

Purpose

The SbrTrace() method writes a script trace to the log from the point in the script where the statement appears.

Syntax

SbrTrace([logLevel])

Parameters

Table 142: SbrTrace() Parameters

Parameter

Description

logLevel

Specifies the log level of the message. The log level configured in Steel-Belted Radius Carrier must be greater than or equal to this value for the message to appear in the log. Optional log level value in range of 0-2.

Returns

Nothing.

Example

SbrTrace(2);

Modified: 2018-01-11