UNPKG

@oracle/suitecloud-unit-testing

Version:

<p align="left"><a href="#"><img width="250" src="resources/netsuite_logo_simplified.png"></a></p>

65 lines (59 loc) 2.86 kB
define([], function () { /** * SuiteScript log module * * @module N/log * @NApiVersion 2.x * */ var log = function () {}; /** * Logs a Debug type log message to the Execution Log tab of the script deployment for the current script. This entry does not appear on the Execution Log tab if the Log Level field for the script deployment is set to Audit or above. Use this method for scripts in development. * @governance none * @param {Object} options * @param {string} options.title String displayed in the Title column on the Execution Log tab of the script deployment. * @param {*} [options.details] String displayed in the Details column on the Execution Log tab of the script deployment. * @return {void} * * @since 2015.2 */ log.prototype.debug = function (options) {}; /** * Logs an Audit type log message to the Execution Log tab of the script deployment for the current script. This entry will not appear on the Execution Log tab if the Log Level field for the script deployment is set to Error or above. Use this method for scripts in production. * @governance none * @param {Object} options * @param {string} options.title String displayed in the Title column on the Execution Log tab of the script deployment. * @param {*} [options.details] String displayed in the Details column on the Execution Log tab of the script deployment. * @return {void} * * @since 2015.2 */ log.prototype.audit = function (options) {}; /** * Logs an Error type log message to the Execution Log tab of the script deployment for the current script. This entry will not appear on the Execution Log tab if the Log Level field for the script deployment is set to Emergency or above. Use this method for scripts in production. * @governance none * @param {Object} options * @param {string} options.title String displayed in the Title column on the Execution Log tab of the script deployment. * @param {*} [options.details] String displayed in the Details column on the Execution Log tab of the script deployment. * @return {void} * * @since 2015.2 */ log.prototype.error = function (options) {}; /** * Logs an Emergency type log message to the Execution Log tab of the script deployment for the current script. Use this method for scripts in production. * @governance none * @param {Object} options * @param {string} options.title String displayed in the Title column on the Execution Log tab of the script deployment. * @param {*} [options.details] String displayed in the Details column on the Execution Log tab of the script deployment. * @return {void} * * @since 2015.2 */ log.prototype.emergency = function (options) {}; /** * @exports N/log * @namespace log */ return new log(); });