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/