如何登录Azure Web作业?

如何登录Azure Web作业?,azure,azure-webjobs,Azure,Azure Webjobs,所以我试过: Trace.TraceInformation("Trace.Information Found message on queue"); Debug.WriteLine("Debug Found message on queue"); Trace.WriteLine("Trace.WriteLine Found message on queue"); Console.WriteLine("Console.WriteLine Found message on queue"); 但它

所以我试过:

Trace.TraceInformation("Trace.Information Found message on queue");
Debug.WriteLine("Debug Found message on queue"); 
Trace.WriteLine("Trace.WriteLine Found message on queue");
Console.WriteLine("Console.WriteLine Found message on queue");
但它们都没有输出到Azure portal Web作业输出日志

我遗漏了什么?

稍后编辑: 由于测试版,下面的答案不再正确。要记录消息,您现在必须使用TextWriter,如以下示例所示:


Console.WriteLine应该可以工作。如果这不起作用,你能发布更多的代码吗

对于从函数内部写入的消息,日志应该显示在函数调用页面上


对于在函数外部写入的消息,日志应显示在作业输出日志中。

Console.WriteLine对我有效,但log.WriteLine(根据SDK示例)无效


事实证明,我需要在门户中设置Webjob连接字符串,即使我在App.config中定义了AzureWebJobsDashboard和AzureWebJobsStorage。

Console.WriteLine也不适用于我。在Main()和Function()中测试。这就是说“函数调用页面”当前将被破坏-昨天我确实看到了函数调用统计信息和列表-今天它只是一条消息“使用Windows Azure WebJobs SDK做更多…”。其他一切都正常工作。随着Beta版的发布,我们已经改变了日志记录的工作方式。您现在必须使用TextWriter,如以下示例所示:是否有相关的实际文档?实际记录内容的哪一部分?@VictorHurdugaci链接已断开。它去了一个存储库,但没有该文件。log.WriteLine也不适合我(我在门户中有这些连接字符串!)。Console.WriteLine可以工作。我希望从新用户的角度来看,有一些关于整个TextWriter方法的好文档。