Console (serverside)

(console)

Overview

It offers support for console logging inside serverside scripting logic of custom web components or custom web services (NG / Titanium). It is named 'console', similar to what is available in browser side scripting for such custom components/services.

Methods Summarized

Type
Name
Summary

void

Report an error to the console.

void

Report a message to the console.

void

Report a warning to the console.

Methods Detailed

error(value)

Report an error to the console.

Parameters

Returns: void

Sample

console.error('ERROR')

log(value)

Report a message to the console.

Parameters

Returns: void

Sample

console.log('some info')

warn(value)

Report a warning to the console.

Parameters

  • Object value the warning object

Returns: void

Sample

console.warn('some warning')

Last updated