# Titanium.API

The top-level API module, containing methods to output messages to the system log.

Availability
0.8
0.8
9.2.0

# Methods

# debug

Availability
0.8
0.8
9.2.0
debug(message) void

Logs messages with a debug severity-level.

Parameters

Name Type Description
message Array<String> | String

Message to log. Accepts an array on iOS only.

Returns

Type
void

# error

Availability
0.8
0.8
9.2.0
error(message) void

Logs messages with an error severity-level.

Parameters

Name Type Description
message Array<String> | String

Message to log. Accepts an array on iOS only.

Returns

Type
void

# info

Availability
0.8
0.8
9.2.0
info(message) void

Logs messages with an info severity-level.

Parameters

Name Type Description
message Array<String> | String

Message to log. Accepts an array on iOS only.

Returns

Type
void

# log

Availability
0.8
0.8
9.2.0
log(level, message) void

Logs messages with the specified severity-level.

Parameters

Name Type Description
level String

Log level. One of info, warn, error, debug and trace. If the value is not recognized, an info-level message prefixed with the value is logged.

message Array<String> | String

Message to log. Accepts an array on iOS only.

Returns

Type
void

# timestamp

Availability
0.8
9.2.0
timestamp(message) void

Logs messages with a timestamp severity-level, prefixed with a timestamp float number representing the number of seconds since January 1st, 2001.

Parameters

Name Type Description
message Array<String> | String

Message to log. Accepts an array on iOS only.

Returns

Type
void

# trace

Availability
0.8
0.8
9.2.0
trace(message) void

Logs messages with a trace severity-level.

Parameters

Name Type Description
message Array<String> | String

Message to log. Accepts an array on iOS only.

Returns

Type
void

# warn

Availability
0.8
0.8
9.2.0
warn(message) void

Logs messages with a warn severity-level.

Parameters

Name Type Description
message Array<String> | String

Message to log. Accepts an array on iOS only.

Returns

Type
void