FÖRSÄLJNING: 1-800-867-1389
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

View service logs

Updated: February 27, 2015

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

Var detta till hjälp?
(1500 tecken kvar)
Tack för dina kommentarer
© 2015 Microsoft