Modules

filter

 

Objects/Functions

module (N/log)

SuiteScript 2.0

log.audit(options)

{log}.audit({title: {string*},details: {any}})

N/log Module
log.audit()
Method Description: Logs an Audit message. Audit messages appear on the Execution Log tab if the Log Level on the script deployment is set to Audit or Debug. Use this method for scripts in production.
Returns: void
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Governance: Amount of logging in any 60 minute period is limited. See N/log Module Guidelines.
Module: N/log Module
Since: 2016.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=log.audit(options)

Example:

// Code Example 1
//Add additional code
//...
var myValue = 'value';
log.audit({
title: 'Audit Entry',
details: 'Value of myValue is: ' + myValue
});
//...
//Add additional code

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