How do I access the SuiteScript performance logs?
# ask-stanley-ai
w
How do I access the SuiteScript performance logs?
c
AI generated answer (using internal Slack threads):
To access the SuiteScript performance logs, you can follow these steps: 1. Navigate to the NetSuite UI. 2. Go to
Customization > Scripting > Script Execution Logs
. This will show you a list of script execution logs. However, please note that this list only logs the last 10,000 rows and gets purged regularly. If you are looking for a scripted solution, you can send a post request from the script you want the logs from to a script that you have access to. Alternatively, you can create a Suitelet that can run as admin and access the logs that way, maybe via rendering a list from a search. If you are working with a client script (cs) and a Suitelet script, you can use
log.debug
in the client script and the Suitelet that is calling some function of the client script. The logs will appear in its scripted record. You can also use
console.log
in the client script to see the logs in the browser console. For more detailed information, you can refer to the following NetSuite help articles: - [Viewing a List of Script Execution Logs](https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4375937190.html) - [Core Administration Permissions](https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1540845284.html) ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851503074
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844013274
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84378022
Please provide your feedback on this answer.