我是否需要重新部署Azure Web角色才能打开IIS日志记录? [英] Do I have to redeploy an Azure Web Role to turn on IIS Logging?

查看:71
本文介绍了我是否需要重新部署Azure Web角色才能打开IIS日志记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行MVC Web API网站的Azure Web角色.我正在使用diagnostics.wadcfg文件配置日志记录.到目前为止,我只是使用跟踪,并使用Cerebrata/Redgate的Azure Diagnostics Monitor 2对其进行了查看.一切都很好.

I have an Azure web role running an MVC Web API site. I'm using the diagnostics.wadcfg file to configure logging. So far I've just be using tracing and I view it with the Azure Diagnostics Monitor 2 from Cerebrata/Redgate. All is well.

我想开始注销IIS请求.我知道我可以去wad-control-container通过更新那里的内容来做一些日志记录调整,如下所示:

I wanted to start logging out IIS requests. I know I can go to the wad-control-container to do some tweaks to logging by updating the content there as seen here:

<?xml version="1.0"?>
<ConfigRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DataSources>
    <OverallQuotaInMB>4096</OverallQuotaInMB>
    <Logs>
      <BufferQuotaInMB>1024</BufferQuotaInMB>
      <ScheduledTransferPeriodInMinutes>1</ScheduledTransferPeriodInMinutes>
      <ScheduledTransferLogLevelFilter>Verbose</ScheduledTransferLogLevelFilter>
    </Logs>
    <DiagnosticInfrastructureLogs>
      <BufferQuotaInMB>0</BufferQuotaInMB>
      <ScheduledTransferPeriodInMinutes>0</ScheduledTransferPeriodInMinutes>
      <ScheduledTransferLogLevelFilter>Undefined</ScheduledTransferLogLevelFilter>
    </DiagnosticInfrastructureLogs>
    <PerformanceCounters>
      <BufferQuotaInMB>0</BufferQuotaInMB>
      <ScheduledTransferPeriodInMinutes>0</ScheduledTransferPeriodInMinutes>
      <Subscriptions />
    </PerformanceCounters>
    <WindowsEventLog>
      <BufferQuotaInMB>0</BufferQuotaInMB>
      <ScheduledTransferPeriodInMinutes>0</ScheduledTransferPeriodInMinutes>
      <Subscriptions />
      <ScheduledTransferLogLevelFilter>Undefined</ScheduledTransferLogLevelFilter>
    </WindowsEventLog>
    <Directories>
      <BufferQuotaInMB>0</BufferQuotaInMB>
      <ScheduledTransferPeriodInMinutes>0</ScheduledTransferPeriodInMinutes>
      <Subscriptions />
    </Directories>
  </DataSources>
  <IsDefault>true</IsDefault>
</ConfigRequest>

例如,我可以从详细记录切换为信息日志跟踪.

For example I can switch from Verbose to Information log tracing.

我可以从这里打开IIS日志记录吗?还是我必须更新我的diagnostics.wadcfg并重新部署?

Can I turn on the IIS logging from here? Or do I have to update my diagnostics.wadcfg and redeploy?

感谢您的帮助!

推荐答案

您可以使用Cerebrata的诊断管理器来更改配置.它是逐个实例完成的.重新部署应用程序或实例被Azure重新映像后,该更改将丢失.

You can use Cerebrata's Diagnostic Manager to change the configuration. It is done instance by instance. That change will be lost once you redeploy your application or your instance gets reimaged by Azure.

这篇关于我是否需要重新部署Azure Web角色才能打开IIS日志记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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