TraceSettings Class [IIS 7 and higher]
Configures the ASP.NET trace functionality and controls how trace results are gathered, stored, and displayed.
The following table lists the properties exposed by the TraceSettings class.
A read/write boolean value. true if the trace listeners automatically flush the output buffer after every write operation; otherwise, false. The default is false.
When the AutoFlush property is set to true, the trace listener writes to the file regardless of whether the System.Diagnostics.Trace.Flush method is called.
A read/write sint32 value that specifies the number of spaces to indent when the System.Diagnostics.Trace.Indent method is called. The default is 4.
A TraceListenerSettings value that contains listeners that monitor and format trace output.
A read/write boolean value. true if the global lock will be used; otherwise, false. The default is true.
The global lock is always used if the trace listener is not thread safe, regardless of the value of UseGlobalLock. The System.Diagnostics.TraceListener.IsThreadSafe property determines whether the listener is thread safe. The global lock is not used only if the value of UseGlobalLock is false and the value of IsThreadSafe is true. The default behavior is to use the global lock.
Instances of this class are contained in the Trace property of the SystemDiagnosticsSection class.