0

我有正高兴地在Azure上运行的应用程序服务,一切工作正常但是当我查看日志流我已经应用程序日志后,下面的条目被连接:system.applicationHost进入

enter image description here

正如你可以在上面的日志中看到我得到

2017-07-28T10:42:42 :(6,10), No element in the source document matches '/configuration/system.applicationHost/sites/site[@name='~1xxx']/application[@path='/websitelogs']' 

这显然是抱怨system.application我并不在我的web.config有。

  1. 我应该关心此消息吗?
  2. 我将如何摆脱Azure日志流中的此消息?
  3. 由于system.applicationHost包含由IIS中的Windows进程激活服务使用的全局配置设置,如果我假设说在system.applicationHost

enter image description here

添加一个新的部分像一个以上配置得到传播到我的Azure服务器上的所有网站?

回答

1

你应该简单地忽略这一点。 :-)

因此,该消息仅表示您已安装Azure网站日志浏览器Site Extension。路径/websitelogs对应于Azure网站日志浏览器网站扩展。

如果你注意到,它正在执行的操作序列,它

  • 它检查是否有道路/websitelogs
  • 条目因为它没有找到,它与进行插入操作并创建一个应用程序类型。

这将适用于您已安装的任何网站扩展

最后,如果你检查ApplicationHost.config文件,你会看到类似下面的条目:

<sites> 
<site name="~1samplewebapp" id="80239797"> 
    <application path="/websitelogs" preloadEnabled="true" applicationPool="~1kaushalp"> 
     <virtualDirectory path="/" physicalPath="D:\home\SiteExtensions\websitelogs" /> 
    </application> 
    </site> 
</sites> 

你会发现转化记录在这里:D:\home\LogFiles\Transform

这里从我的日志中查看相同活动的片段:

2017-07-28T16:41:41 Start 'websitelogs' site extension transform 
2017-07-28T16:41:41 :(6,10), No element in the source document matches '/configuration/system.applicationHost/sites/site[@name='~1samplewebapp']/application[@path='/websitelogs']' 
2017-07-28T16:41:41 Not executing Remove (transform line 6, 68) 
2017-07-28T16:41:41 StartSection Executing Insert (transform line 7, 64) 
2017-07-28T16:41:41 on /configuration/system.applicationHost/sites/site[@name='~1samplewebapp']/application 
2017-07-28T16:41:41 Applying to 'site' element (no source line info) 
2017-07-28T16:41:41 Inserted 'application' element 
2017-07-28T16:41:41 EndSection Done executing Insert 
2017-07-28T16:41:41 Successful 'D:\home\SiteExtensions\websitelogs\applicationHost.xdt' site extension transform 

下面是这个样子的截图

WebSiteLogs Site Extension