Eksportuj (0) Drukuj
Rozwiń wszystko
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.

View service logs

Updated: April 15, 2014

Microsoft Azure Mobile Services writes system and runtime errors to the log. Click on a log entry to view details and copy to the clipboard.

Existing log entries can be viewed in the Management Portal for 7 days.

In a JavaScript backend, your registered server scripts can also write information directly to the log by using the console object. For more information, see the Script Reference for Windows Azure Mobile Services.

In a .NET backend project, you can write to the log by using the Log property you access from the Services property in every controller or scheduled job, as in the following example:

Services.Log.Error("Could not retrieve Twitter access credentials.");

When running on the local computer, .NET backend logs are written to the Output window in Visual Studio.

© 2014 Microsoft