简体   繁体   English

Azure网站和日志记录

[英]Azure web sites and logging

I have managed to set up my azure logs, how do I test if it is working? 我已经成功设置了天蓝色日志,如何测试它是否正常工作?

This tutorial describes how to set up a log, but not how to test it. 本教程描述了如何设置日志,而不是如何对其进行测试。

You can install a site extension called "Azure Website Log Browser" which makes veiwing your logs an easy task. 您可以安装一个名为“ Azure网站日志浏览器”的站点扩展,这使浏览日志变得容易。

For more information on how see here: http://blog.amitapple.com/post/2014/06/azure-website-logging/ 有关如何查看的更多信息,请参见: http : //blog.amitapple.com/post/2014/06/azure-website-logging/

You can test whether your logs are actually working by running some code that definitely logs information, then opening up the logs table (or blob, whatever your mechanism of choice was) in your storage account and checking whether the logs exist. 您可以通过运行某些绝对可以记录信息的代码,然后在您的存储帐户中打开日志表(或blob,无论您选择哪种机制),然后检查日志是否存在,来测试日志是否确实有效。

Recent versions of Visual Studio are able to examine the contents of a table. Visual Studio的最新版本能够检查表的内容。 There are also some free tools out there that allow you to browse your azure storage account. 还有一些免费工具,可让您浏览Azure存储帐户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM