Global.console

Console logging facilities.

The toplevel console support is intended to supplement Titanium.API and make it easier for developers to port existing javascript code (especially CommonJS modules) to Titanium.

Note that console does not currently implement the complete firebug specification. Our support is roughly equivalent to that offered by node.js's console.

  • 2.1.0
  • 2.1.0
  • 2.1.0
Defined By

Methods

Global.console
( message )
Log a message at the debug level. ...

Log a message at the debug level.

The message to log can either be a single argument, or any number of arguments, which will be converted to strings and then concatenated together with a space character.

Parameters

  • message : Object

    The message(s) to log.

Returns

  • void
Global.console
( message )
Log a message at the error level. ...

Log a message at the error level.

The message to log can either be a single argument, or any number of arguments, which will be converted to strings and then concatenated together with a space character.

Parameters

  • message : Object

    The message(s) to log.

Returns

  • void
Global.console
( message )
Log a message at the info level. ...

Log a message at the info level.

The message to log can either be a single argument, or any number of arguments, which will be converted to strings and then concatenated together with a space character.

Parameters

  • message : Object

    The message(s) to log.

Returns

  • void
Global.console
( message )
Log a message at the info level. ...

Log a message at the info level.

The message to log can either be a single argument, or any number of arguments, which will be converted to strings and then concatenated together with a space character.

Note that this method has different behavior from Titanium.API.log, which can take multiple arguments, but in doing so interprets the first argument as a custom log level.

Parameters

  • message : Object

    The message(s) to log.

Returns

  • void
Global.console
( message )
Log a message at the warn level. ...

Log a message at the warn level.

The message to log can either be a single argument, or any number of arguments, which will be converted to strings and then concatenated together with a space character.

Parameters

  • message : Object

    The message(s) to log.

Returns

  • void