ADFS 2.0启用调试跟踪 [英] ADFS 2.0 enable debug trace

查看:86
本文介绍了ADFS 2.0启用调试跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

 

我在这个帖子中问过
http://social.msdn.microsoft.com/Forums/en/Geneva/thread/e46a1a52-9d73-47a9-8201-22c1403fbeb6



为什么我在ADFS 2.0调试跟踪日志中没有得到任何内容。

I asked in this thread http://social.msdn.microsoft.com/Forums/en/Geneva/thread/e46a1a52-9d73-47a9-8201-22c1403fbeb6
why I didn't get anything in the ADFS 2.0 debug tracing log.

 

我发现这个博客<标题="http://tnbluesboy.wordpress.com/2010/07/15/how-to-enable-tracing-for-sharepoint-2010-claims/"href ="http://tnbluesboy.wordpress.com/ 2010/07/15 / how-to-enable-tracing-for-sharepoint-2010-claims /">
http://tnbluesboy.wordpress.com/2010/07/15/how-to-enable-追踪共享点 - 2010年索赔 /所以我修改了文件


" C:\Program Files \ Active Directory联合身份验证服务2.0 \ Microsoft.IdentityServer .Servicehost.exe.config"。

I've found this blog http://tnbluesboy.wordpress.com/2010/07/15/how-to-enable-tracing-for-sharepoint-2010-claims/ so I modify file
"C:\Program Files\Active Directory Federation Services 2.0\Microsoft.IdentityServer.Servicehost.exe.config".

首先我想在调试跟踪日志中写入事件,但是我没有在该日志中获得任何内容。

First I want to write events in the debug tracing log, but I didn't get anything in that log.

 

---- -Microsoft.IdentityServer.Servicehost.exe.config -

-----Microsoft.IdentityServer.Servicehost.exe.config--

 


<system.diagnostics>
  <sources>
   <!-- To enable WIF tracing, change the switchValue below to desired trace level - Verbose, Information, Warning, Error, Critical -->
   <!-- Set TraceOutputOptions as comma separated value of the following; ProcessId ThreadId CallStack. Specify None to not include any of the optional data-->
   <!-- NOTE THAT THE CHANGES TO THIS SECTION REQUIRES SERVICE RESTART TO TAKE EFFECT -->
   <source name="Microsoft.IdentityModel" switchValue="Verbose">
    <listeners>
     <!--
     <add name="ADFSWifListener" traceOutputOptions="ProcessId,ThreadId" initializeData="Wif" type="Microsoft.IdentityServer.Diagnostics.ADFSTraceListener,Microsoft.IdentityServer,Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
     -->
     <add name="ADFSWifListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\logs\adfs1.svclog" />
    </listeners>
   </source>
   
   <!-- To enable WCF tracing, change the switchValue below to desired trace level - Verbose, Information, Warning, Error, Critical and
      uncomment the system.servicemodel section below -->
   <source name="System.ServiceModel" switchValue="Verbose" >
    <listeners>
     <!--
     <add name="ADFSWcfListener" traceOutputOptions="ProcessId,ThreadId" initializeData="Wcf" type="Microsoft.IdentityServer.Diagnostics.ADFSTraceListener,Microsoft.IdentityServer,Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
     -->
     <add name="ADFSWcfListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\logs\adfs2.svclog" />
    </listeners>
   </source>
   <source name="System.ServiceModel.MessageLogging" switchValue="Verbose" >
    <listeners> 
     <!--
     <add name="ADFSWcfListener" traceOutputOptions="ProcessId,ThreadId" initializeData="Wcf" type="Microsoft.IdentityServer.Diagnostics.ADFSTraceListener,Microsoft.IdentityServer,Version=6.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
     -->
     <add name="ADFSWcfListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\logs\adfs3.svclog" />
    </listeners>
   </source>
  </sources>  
  <trace autoflush="true" ></trace>
  
 </system.diagnostics>
 
 <system.serviceModel>
  <diagnostics>
   <messageLogging logEntireMessage="true"
       logMessagesAtServiceLevel="true"
       logMessagesAtTransportLevel="true">
   </messageLogging>
  </diagnostics>
 </system.serviceModel> 

推荐答案

您好,

将这些侦听器写入文件是不受支持的方案。请按照以下文章中的步骤为AD FS 2.0跟踪/调试日志启用详细日志记录,并确保按照步骤启用详细WIF和WCF跟踪。所有事件
都将写入AD FS 2.0跟踪/调试事件日志。

It is an unsupported scenario to write these listeners to a file. Please follow the steps in the following article to enable Verbose logging for the AD FS 2.0 Tracing/Debug log, and be sure to follow the steps to enable Verbose WIF and WCF tracing. All events will be written to the AD FS 2.0 Tracing/Debug event log.

http://technet.microsoft.com/en-us/library/adfs2-troubleshooting-configuring-computers(WS.10)的.aspx

 

谢谢,

Adam Conkle

Adam Conkle


这篇关于ADFS 2.0启用调试跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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