Setting Script Execution Log Levels
In the Log Level field on the Script Deployment page, specify which log entries you want to appear on the Execution Log tab:

The Log Level field is essentially used as a basic filtering mechanism. Each log entry written with N/log Module methods specifies a log level based on the specific method used: log.audit(options), log.debug(options), log.emergency(options), log.error(options).
Set filtering by selecting one of the following log levels from the Log Level field:
-
Debug : For scripts in testing mode. Selecting this level will show all log messages (debug, audit, error, and emergency).
-
Audit : For scripts going into production. Selecting this level will show the events that have occurred during the processing of the script (for example, “A request was made to an external site.”).
-
Error : For scripts going into production. Selecting this level will show only unexpected script errors.
-
Emergency : For scripts going into production. Selecting this level will show only the most critical errors in the script log.
NetSuite governs the amount of logging that can be done by a company in any 60 minute time period. For complete details, see Governance on Script Logging.
The log level you specify on the Script Deployment page is independent of any error handling within your script.
See Using the Script Execution Log Tab for details on how to further customize your view of all log entries.