Wcf IIExpress tracelog文件

Wcf IIExpress tracelog文件,wcf,iis,asp.net-mvc-4,iis-express,Wcf,Iis,Asp.net Mvc 4,Iis Express,我正在调试asp.NETMVC4网站wsccc1。为了跟踪任何错误,我在web.config中设计了跟踪文件log。我使用Visual Studio 2012,默认托管服务器是IIS Express <?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.5"/> <httpRunt

我正在调试asp.NETMVC4网站wsccc1。为了跟踪任何错误,我在web.config中设计了跟踪文件log。我使用Visual Studio 2012,默认托管服务器是IIS Express

<?xml version="1.0"?>
<configuration>
   <system.web>
     <compilation debug="true" targetFramework="4.5"/>
     <httpRuntime targetFramework="4.5"/>
     <customErrors mode="Off"></customErrors>
   </system.web>
   <system.serviceModel>
     <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true">
     <serviceActivations>
     <add factory="System.ServiceModel.Activation.WebServiceHostFactory"
    relativeAddress="wscccService.svc"
    service="service.wservice"/>
  </serviceActivations>
  <baseAddressPrefixFilters>
    <add prefix="http://localhost:8080/" />
  </baseAddressPrefixFilters>
  </serviceHostingEnvironment>
 <behaviors>
  <serviceBehaviors>
      <behavior>
        <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true" />
      </behavior>
  </serviceBehaviors>
 </behaviors>
 <diagnostics>
     <messageLogging logEntireMessage="true"
              logMessagesAtServiceLevel="false"
              logMessagesAtTransportLevel="false"
              logMalformedMessages="true"
              maxMessagesToLog="5000"
              maxSizeOfMessageToLog="2000">
 </messageLogging>
</diagnostics>
</system.serviceModel>
 <system.webServer>
    <validation validateIntegratedModeConfiguration="true" />
    <handlers>
    <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
    <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
    <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
    <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
    <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
   </system.webServer>
 <system.diagnostics>
    <sources>
      <source name="System.ServiceModel.MessageLogging">
        <listeners>
        <add name="messagelistener"
         type="System.Diagnostics.XmlWriterTraceListener"
              initializeData="C:\myMessages.svclog"></add>
     </listeners>
  </source>
  </sources>
    <trace autoflush="true"></trace>
  </system.diagnostics>

但是我在C驱动器中找不到任何.svclog文件。路径“C:\Users\hui\Documents\IISExpress\TraceLogFiles\wsccc1”中有日志文件。所有文件都以“fr”开头,例如“fr00400.xml”。 它具有异常信息

我的问题是为什么它以“fr”开头?是指法语,但我在美国吗


另外,我无法生成“C:\myMessages.svclog”的原因。
C:\Users\hui\Documents\IISExpress\TraceLogFiles\wsccc1中的文件是IIS日志文件:HTTP请求url+响应状态+时间戳+。。。。这需要HttpLoggingModule,它与WCF甚至asp.net无关

*.svclog
是WCF跟踪文件:这通常需要编辑配置文件才能启用WCF跟踪(就像您所做的那样)。一个好的教程是非常有用的

这也是我无法生成“C:\myMessages.svclog”的原因

也许是因为安全原因。将完全控制添加到C驱动器上的所有人(不推荐)或指定一个公共目录(如C:\logs),每个人都可以在其中生成跟踪日志

编辑:


为什么IIS日志文件以“fr”开头


即使我是法国人,也不是为我们做的。fr在这里表示请求失败。这是IIS中的一项新功能,名为“失败的请求跟踪”:它旨在缓冲请求的跟踪事件,并且仅在请求“失败”时将其刷新到磁盘。说明。

为什么IIS日志文件以“fr”开头?