Log SetReportingLevel() Method

(SBM On-Premise only) Sets the log reporting level.

Function Signature

 int SetReportingLevel( int value )

Parameters

Parameter Type Description

value

int

An integer value, from 1 to 4; constant values are available by using the member functions NONE through VERBOSE, or using the LogLevelConstants global, which has members NONE through VERBOSE. See LogLevelConstants.

The default is LogLevelConstants.AVERAGE.

Return

Type Description

int

Returns the int value passed in.

Technical Details

SBM ModScript version: 11.3.

Example

See Log Message() Method.

Notes

Calls to "Message" functions with a higher value will be ignored. This allows code to be written that writes frequent log messages at the VERBOSE level, but perhaps most of those messages can be ignored most of the time when not debugging, so the log level is set to MINIMAL unless the script writer is debugging.

Related Topics

Log