Azure如何启用完整的WebJob日志 [英] Azure how to enable full WebJob logs

查看:152
本文介绍了Azure如何启用完整的WebJob日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Windows Azure中将控制台应用程序作为WebJob运行时,几行日志后它会添加警告:

When I run a console application as a WebJob in Windows Azure, after few lines of log it adds a warning:

[05/06/2014 09:42:40 > 21026c: WARN] Reached maximum allowed output lines for this run, to see all of the job's logs you can enable website application diagnostics

并停止记录.我正在使用 BASIC 托管计划来浏览网站中的所有设置,但找不到能解决此问题的任何东西.

And stops logging. I was going through all settings in my Website with BASIC hosting plan but I was unable to find anything that would fix this issue.

如何启用完整的webJob日志?

How can I enable full webJob logs?

推荐答案

启用完整(连续)WebJobs日志的方法实际上是在错误消息中:enable website application diagnostics,您可以通过网站CONFIGURE上的Azure门户来执行此操作标签,您可以将应用程序日志设置为进入文件系统(但仅12小时),表存储或Blob存储.

The way to enable full (continuous) WebJobs logs is actually in the error message: enable website application diagnostics, you can do this via the Azure portal on the website's CONFIGURE tab, you can set the application logs to go to either the file-system (but only for 12 hours), table storage or blob storage.

启用后,WebJob的完整日志将保存在选定的存储中.

Once enabled the full logs for WebJobs will go on the selected storage.

有关Azure网站的应用程序诊断的更多信息: http://azure.microsoft.com/zh-CN/documentation/articles/web-sites-enable-diagnostic-log/

More info on application diagnostics for Azure websites: http://azure.microsoft.com/en-us/documentation/articles/web-sites-enable-diagnostic-log/

这篇关于Azure如何启用完整的WebJob日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆