how to look up RESTlet SCript logs
# ask-stanley-ai
s
how to look up RESTlet SCript logs
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** To look up RESTlet Script logs in NetSuite, you can follow these steps: 1. In your RESTlet, include
log.debug()
statements where you want to capture information. These will be written to the log when the script is executed. 2. Check the logging level on your script deployment. The logging level determines what kind of information is logged. If the logging level is set to 'Error', only errors will be logged. If it's set to 'Debug', all information including debug statements will be logged. 3. The logs can be viewed in the Script Execution Log. 4. Note that when a script is moved from 'Testing' to 'Released', the system changes the default logging level to 'Error'. 5. If a RESTlet has status 'Testing', it can still be called and it will run for the specified audience/roles but only on the account of the script owner. Additionally, if you want to check if NetSuite is currently executing/processing a RESTlet, you could create a custom 'restlog' record. The first thing the RESTlet does is create a new restlog, then pushes details into the notes. If the restlog isn't closed, you know the RESTlet is still running. For more information, you can refer to the NetSuite Help Center articles on [Viewing a List of Script Execution Logs](https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4375937190.html) and [Core Administration Permissions](https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1540845284.html).
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828845501
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.824952066
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823869467
Please provide your feedback on this answer.