The content in this help topic applies to SuiteScript 2.0 and SuiteScript 2.1.
NetSuite loads the log Object by default for all script types. You do not need to load it manually. However, you can choose to load it using the N/log Module, for testing purposes.
SuiteScript 2.x provides global objects including log Object and util Object. If you are using the words ‘log’ or ‘util’ as variable names in your SuiteScript 1.0 scripts and you have both SuiteScript 1.0 and SuiteScript 2.0 scripts running on the same record you will receive an error. Both the ‘log’ and ‘util’ words are reserved in SuiteScript 2.x. You will need to update your SuiteScript 1.0 scripts that use ‘log’ or ‘util’ as variables names.
log Object Members
For more details about the log Object and its methods, see N/log Module.