Provides a universal trace capability.
If executed within the browser, trace will log trace messages to the browser's web console and the helper debug panel (if enabled). When executed server-side it will log to the API Server console.
Arguments
Argument | Type | Description |
---|---|---|
level | String, optional | One of "info", "warn" or "error" |
anything | anything | Anything you'd like to trace |
Trace takes any number of arguments of any type including arrays and objects. You can optionally set the trace level. if not supplied it defaults to "info".
Example
function(helper, pageName, pageInstance) {
helper.trace('info', helper.getFieldValue('FIELD1'));
}
Last modified on November 11, 2022