This document will provide the steps necessary to work enable FIM Service Tracing. FIM Service Tracing is enabled/disabled via the FIM Service Configuration File ( %programfiles%\Microsoft Forefront Identity Manager\2010\Service\Microsoft.ResourceManagement.Service.Exe.Config ).
<
diagnostics
>
messageLogging
logEntireMessage
=
"true"
logMalformedMessages
logMessagesAtServiceLevel
logMessagesAtTransportLevel
maxSizeOfMessageToLog
"2147483647"
/>
</
system.serviceModel
services
switches
add
name
"System.Workflow LogToTraceListeners"
value
"1"
"System.Workflow.Runtime.Hosting"
"Verbose"
"System.Workflow.Runtime"
"System.Workflow.Runtime.Tracking"
"System.Workflow.Activities"
"System.Workflow.Activities.Rules"
system.diagnostics>
sources
source
"System.ServiceModel"
switchValue
"Verbose,ActivityTracing"
propagateActivity
listeners
type
"System.Diagnostics.DefaultTraceListener"
"Default"
filter
""
"ServiceModelTraceListener"
"System.ServiceModel.MessageLogging"
"ServiceModelMessageLoggingListener"
<add initializeData="C:\Logs\Microsoft.ResourceManagement.Service_tracelog.svclog"
type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
name="ServiceModelTraceListener" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack">
<filter type="" />
</add>
<add initializeData="C:\Logs\Microsoft.ResourceManagement.Service_messages.svclog"
name="ServiceModelMessageLoggingListener" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack">
<add initializeData="c:\logs\fimservice_textOutput.txt" type="System.Diagnostics.TextWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
name="Text" traceOutputOptions="DateTime, ThreadId">
</sharedListeners>
If you made the backup copy of the FIM Service Configuration File, then you can rename the tracing file to Microsoft.ResourceManagement.Service.Exe.Config._TracingEnabled. Once you do that, then rename the backup copy back to Microsoft.ResourceManagement.Service.Exe.Config. If you do this, then you should be able to easily toggle back forth to enable/disable tracing.
Anytime you change the FIM Service Configuration File, then you will need to restart the FIM Service (Forefront Identity Manager Service).