Azure诊断日志未复制到存储帐户
我是Azure平台的新手,只是尝试将我的IIS日志拉入我的存储帐户 在本地运行并使用storage emulator时,我可以看到没有问题的日志。但是,在部署应用程序时,永远不会创建日志文件,我在blob存储中看到的唯一容器是vsdeploy 我遵循了这里概述的步骤: 我已在ServiceDefinition.csdef中导入诊断模块Azure诊断日志未复制到存储帐户,azure,azure-storage,azure-diagnostics,Azure,Azure Storage,Azure Diagnostics,我是Azure平台的新手,只是尝试将我的IIS日志拉入我的存储帐户 在本地运行并使用storage emulator时,我可以看到没有问题的日志。但是,在部署应用程序时,永远不会创建日志文件,我在blob存储中看到的唯一容器是vsdeploy 我遵循了这里概述的步骤: 我已在ServiceDefinition.csdef中导入诊断模块 ...<Imports> <Import moduleName="Diagnostics" />... 我还验证了
...<Imports>
<Import moduleName="Diagnostics" />...
我还验证了云部署的存储帐户连接字符串是否正确
不过,在部署时,存储帐户中不会创建任何内容。我缺少或配置不正确的哪一部分使我无法登录日志
谢谢。有点愚蠢的问题:部署应用程序后,您是否访问了云应用程序?
public class WebRole : RoleEntryPoint
{
public override bool OnStart()
{
// For information on handling configuration changes
// see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
DiagnosticMonitorConfiguration diagConfig = DiagnosticMonitor.GetDefaultInitialConfiguration();
diagConfig.Directories.ScheduledTransferPeriod = TimeSpan.FromMinutes(2.0); //IIS LOGS
DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", diagConfig);
return base.OnStart();
}
}