# Titanium.API

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

- Source: https://titaniumsdk.com/docs/sdk/Titanium.API
- Titanium SDK version: 13.4.1
- Kind: module
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 0.1
- Extends: Titanium.Module
- Inheritance: Titanium.Module > Titanium.Proxy

## Methods

### debug

- Platforms: Android, iPhone, iPad, macOS

Logs messages with a `debug` severity-level.

Parameters:

- `message` (Array<String> | String): Message to log. Accepts an array on iOS only.

### error

- Platforms: Android, iPhone, iPad, macOS

Logs messages with an `error` severity-level.

Parameters:

- `message` (Array<String> | String): Message to log. Accepts an array on iOS only.

### info

- Platforms: Android, iPhone, iPad, macOS

Logs messages with an `info` severity-level.

Parameters:

- `message` (Array<String> | String): Message to log. Accepts an array on iOS only.

### log

- Platforms: Android, iPhone, iPad, macOS

Logs messages with the specified severity-level.

Parameters:

- `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.

### timestamp

- Platforms: iPhone, iPad, macOS

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

Parameters:

- `message` (Array<String> | String): Message to log. Accepts an array on iOS only.

### trace

- Platforms: Android, iPhone, iPad, macOS

Logs messages with a `trace` severity-level.

Parameters:

- `message` (Array<String> | String): Message to log. Accepts an array on iOS only.

### warn

- Platforms: Android, iPhone, iPad, macOS

Logs messages with a `warn` severity-level.

Parameters:

- `message` (Array<String> | String): Message to log. Accepts an array on iOS only.

## Inherited members

7 members are inherited. Each is documented on the type that declares it.

- [Titanium.Proxy](https://titaniumsdk.com/docs/sdk/Titanium.Proxy.md): `addEventListener`, `apiName`, `applyProperties`, `bubbleParent`, `fireEvent`, `lifecycleContainer`, `removeEventListener`

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

