Using the Script Execution Log Tab

Script execution details are logged on the Execution Log tab included on the Script page, Script Deployment page, and SuiteScript Debugger. These logs are searchable, and you can customize views to find specific logs.

The Execution Log tab displays all dates and times in the local time zone set in the user preferences.

Important:

When using the SuiteScript Debugger to debug a script, all logging details appear on the Execution Log tab in the Debugger. To have logging details appear on the Execution Log tab of the Script Deployment page, you must deploy the script first.

The following figure shows two types of execution logs for a Suitelet.

Execution Log tab on Script page for a Suitelet.

The first one is an unexpected error that is generated because a method was not defined in a Suitelet script. The second one is a user-generated execution log that is generated by the following line(s) in this Suitelet code using the SuiteScript 2.0 N/log Module:

          log.debug({ title: 'Suitelet Details', details: 'Suitelet method = ' + request.getMethod()
}); 

        

By default, the View list on the Execution Log tab is set to Default Script Notes View. This default view shows all log types from the current day's script executions.

To view script executions for days other than the current day, click the Customize View button. Specify search criteria such as script execution dates, details, names, and script types, and then name your custom view in the Search Title field, as shown here:

Customized view of the Execution Log with Search Title and Criteria fields highlighted.

The following figure shows a customized view of the execution log. The new view type has been selected from the View list. This view shows log details for days other than the current day.

Script execution log page for Request Limit Exceeded errors on RESTlet scripts.

For more information about viewing script execution logs, see Viewing a List of Script Execution Logs.

Important:

The capacity for script execution logs on the Execution Log tab is shared by customers on the same database. For further protection against excessive logging, script execution logs are governed by a total storage limit on each instance of the NetSuite database. On each NetSuite server, if the database table that stores logs reaches this limit, all logs (across all customers on that server) are purged. This means that you may have logs up to 30 days if the volume is low, but you may have logs of less than a week if the log volume is extremely large. Use the Script Execution Log page for logs up to 30 days, regardless of volume. For more information about governance of script logs, see Governance on Script Logging

Related Topics

General Notices