SALG : 1-800-867-1389
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

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.

Syntes du, dette var nyttigt?
(1500 tegn tilbage)
Tak for din feedback
© 2014 Microsoft