MSDN Library
EN
Dette indhold er ikke tilgængeligt på dit sprog, men her er den engelske version.

View service logs

 

Updated: June 16, 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.

System_CAPS_noteNote

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.

Vis:
© 2016 Microsoft