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 on the SuiteScript Debugger. You can search and customize the logs to find what you need.
The Execution Log tab displays all dates and times in the local time zone set in the user preferences.
When you're using the SuiteScript Debugger to debug a script, all logging details appear on the Execution Log tab in the Debugger. You'll need to deploy the script first to see logging details on the Script Deployment page's Execution Log tab.
The following figure shows two types of execution log messages for a Suitelet.

The first message is an unexpected error that is generated because a Suitelet script called an undefined method. The second message is user-generated by the following line(s) in this Suitelet code using the SuiteScript 2.x N/log Module:
log.debug({ title: 'Suitelet Details', details: 'Suitelet method = ' + request.getMethod()
});
By default, the Execution Log tab shows the 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:

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.

For more information about viewing script execution logs, see Viewing a List of Script Execution Logs.
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.