SalesBuy
1-855-856-7678
Technical SupportSupport
Exposes a set of methods used in scripts to write information to Windows Azure Mobile Services logs.
This object contains the following members:
| Method | Description |
|---|---|
|
|
Writes logs at the info level. |
|
|
Writes logs at the info level. |
|
|
Writes logs at the warning level. |
|
|
Writes logs at the error level. |
function insert(item, user, request) {
console.log("Inserting item '%j'.", item); // %j for 'JSON'
request.execute();
}
The global console object exposes a subset of the methods on console object in Node.js. These methods are redirected to write to the logs for the mobile service.