Shelby Owens
10/09/2025, 1:36 PMCeligo AI
10/09/2025, 1:36 PMAI generated answer (using internal Slack threads):The
log.debug function does not show in the execution log of client scripts because it is primarily designed for server-side logging. While the NetSuite documentation may indicate that the n/log module can be used on the client side, in practice, log.debug does not output to the execution log when used in client scripts.
Instead, for client-side logging, you can use console.log(). This will output messages to the browser's console, which can be viewed by opening the console in your browser's developer tools. However, please note that this method is typically used for debugging during development and may not be suitable for logging in a production environment, especially if the script is customer-facing.
If you need to log information from a client script in a production environment, you might consider other approaches, such as writing to a custom record or sending the log data to a Suitelet for processing. However, these methods would require additional development and may not be suitable for all use cases.
Remember, log.debug and other logging functions from the n/log module will work as expected in server-side scripts, including Suitelets, User Event Scripts, Scheduled Scripts, etc., and the output will be visible in the execution log.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/09/2025, 1:36 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853027463
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8520509
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851379514
Celigo AI
10/09/2025, 1:36 PM