EN
Bu içerik dilinizde bulunmamaktadır ancak İngilizce sürümüne buradan bakabilirsiniz.
Bu konu henüz değerlendirilmedi - Bu konuyu değerlendir

console object

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

The feature described in this topic is available only in preview. To use this feature and other new Windows Azure capabilities, sign up for the free preview.


Exposes a set of methods used in scripts to write information to Windows Azure Mobile Services logs.

This object contains the following members:

Methods

 

Method Description

log(formatString, obj1, obj2, ...)

Writes logs at the info level.

info (formatString, obj1, obj2, ...)

Writes logs at the info level.

warn(formatString, obj1, obj2, ...)

Writes logs at the warning level.

error(formatString, obj1, obj2, ...)

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.

Bunu faydalı buldunuz mu?
(1500 karakter kaldı)
© 2013 Microsoft. Tüm hakları saklıdır.
facebook page visit twitter rss feed newsletter