There is an interesting article on how to enable tracing/logging in AD FS 2.0 on MSDN.
However the brand new Version 2.1 is located in a slightly different place:
- the config file is no longer located in
%ProgramFiles%\Active Directory Federation Services 2.0\Microsoft.IdentityServer.Servicehost.exe.config
instead you can find it here:
- Configure the System.diagnostics as stated in the article
- the wevtutil command has to use a different Provider.
wevtutil sl “AD FS 2.0 Tracing/Debug” /L:5
you have to use:
wevtutil sl "AD FS Tracing/Debug" /L:5
restart the AD FS Service