In our previous article, New to NetSuite | Understanding SuiteScript 2.x Modules, we explored the SuiteScript Modules and N/log module, New to NetSuite | N/log Module Overview, which is used to log script execution details. Now, we will take a closer look at one of the members of N/log: log.audit(options) Method
The log.audit(options) method allows you to write an audit-level log entry to the Script Execution Log. Audit-level logs are used to record important, high-level information about the execution of your script and are useful for tracking significant events or milestones.
These messages help developers track key events, validations, or checkpoints—especially in production environments where excessive logging should be avoided. Audit logs appear under the