Modules

filter

 

Objects/Functions

module (N/runtime)

SuiteScript 2.0

Script.logLevel

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Script.logLevel for more information.

N/runtime Module
Script.logLevel
Property Description: The script logging level for the currently executing script. This method is not supported on client scripts. Returns one of the following values: DEBUG AUDIT ERROR EMERGENCY
Type: string (read-only)
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/runtime Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Script.logLevel

Example:

// Code Example 1
// Add additional code
//...
var scriptObj = runtime.getCurrentScript();
log.debug('Logging level: ' + scriptObj.logLevel);
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4296662791.html