在哪里诊断/日志存储表? [英] Where are the diagnostics/logs storage tables?
问题描述
我有一个问题,部署WebRole(WCF服务)天青。我WebRole不断出现比济为至少30分钟,直到我放弃它。我通过Visual Studio 2010年部署我正在寻找一些跟踪信息,并有已指出我推向一个名为 WADInfrastructureLogsTable
和存储表的一些博客WADLogsTable
。
我已经建立了与我的存储帐户的配置设置是这样的:
< ConfigurationSettings>
<设定名=DiagnosticsConnectionString
value=\"DefaultEndpointsProtocol=https;AccountName=sandsofttestservice;AccountKey=HgPjkzx+mjqgoDTO8SBNB3B4hdARuibWTOHrXg4BpxRKJfRZ/s4abVIoD5lOIW0LkoD0CoMb0i0GiTXA483MDQ==\" />
< / ConfigurationSettings>
我没有在表中的所有我的存储帐户。我已经部署了连后的的Hello World 的成功应用程序。我的Blob容器容纳vsdeploy-和一叠控制容器,我有4个队列。
将要创建这些表?
公共覆盖布尔的OnStart()
{
变种DM = DiagnosticMonitor.GetDefaultInitialConfiguration();
dm.Logs.ScheduledTransferPeriod = TimeSpan.FromSeconds(5);
dm.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose;
DiagnosticMonitor.Start(DiagnosticsConnectionString,DM); Trace.WriteLine(的OnStart);
//有关处理配置更改信息
//看到http://go.microsoft.com/fwlink/?LinkId=166357 MSDN主题。
RoleEnvironment.Changing + = RoleEnvironmentChanging; 返回base.OnStart();
}
我有一个类似的问题。我有转让周期设置为1分钟,这将不转让。不过,我把它更新到5分钟后,我开始看到在WADLogsTable跟踪消息。不知道为什么,使得有差别,并没有发现谈论的最低传输期间的任何文件,但对我来说5分钟工作。
另外,还要确保你有适当的Trace.Writeline()在你的web / Worker角色的陈述。
I have a problem deploying a WebRole (WCF service) to Azure. My WebRole keeps showing buzy for at least 30 minutes, until I abort it. I deploy through Visual Studio 2010. I’m looking for some trace information and there is a few blogs that have pointed me towards storage tables called WADInfrastructureLogsTable
and WADLogsTable
.
I have set up the configuration settings with my storage account like this:
<ConfigurationSettings>
<Setting name="DiagnosticsConnectionString"
value="DefaultEndpointsProtocol=https;AccountName=sandsofttestservice;AccountKey=HgPjkzx+mjqgoDTO8SBNB3B4hdARuibWTOHrXg4BpxRKJfRZ/s4abVIoD5lOIW0LkoD0CoMb0i0GiTXA483MDQ==" />
</ConfigurationSettings>
I have no tables at all in my storage account. Not even after I have deployed Hello World apps successfully. My Blob container holds a vsdeploy- and a wad-control-container, and I have 4 queues.
How will these tables be created?
public override bool OnStart()
{
var dm = DiagnosticMonitor.GetDefaultInitialConfiguration();
dm.Logs.ScheduledTransferPeriod = TimeSpan.FromSeconds(5);
dm.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose;
DiagnosticMonitor.Start("DiagnosticsConnectionString", dm);
Trace.WriteLine("OnStart");
// For information on handling configuration changes
// see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
RoleEnvironment.Changing += RoleEnvironmentChanging;
return base.OnStart();
}
I had a similar problem. I had the 'transfer' period set to 1 minute and it would not transfer. However, after I updated it to 5 minutes, I started seeing trace messages in the WADLogsTable. Not sure why that made a difference and haven't found any documentation that talks about a minimum transfer period, but 5 minutes worked for me.
Also make sure you have appropriate Trace.Writeline() statements in your web/worker role.
这篇关于在哪里诊断/日志存储表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!