34 references to TraceOptions
Microsoft.VisualBasic.Tests (5)
Microsoft\VisualBasic\Logging\FileLogTraceListenerTests.cs (5)
41listener.TraceOutputOptions = TraceOptions.LogicalOperationStack | TraceOptions.DateTime | TraceOptions.Timestamp | TraceOptions.ProcessId | TraceOptions.ThreadId;
netstandard (1)
netstandard.cs (1)
709[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.TraceOptions))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
547[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.TraceOptions))]
System.Configuration.ConfigurationManager (8)
System\Diagnostics\ListenerElementsCollection.cs (8)
83private static readonly ConfigurationProperty s_propOutputOpts = new("traceOutputOptions", typeof(TraceOptions), TraceOptions.None, ConfigurationPropertyOptions.None); 127[ConfigurationProperty("traceOutputOptions", DefaultValue = (TraceOptions)TraceOptions.None)] 128public TraceOptions TraceOutputOptions 132return (TraceOptions)this[s_propOutputOpts]; 186if (_attributes != null || ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !string.IsNullOrEmpty(InitData)) 312if (_attributes != null || ElementInformation.Properties[s_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions != TraceOptions.None || !string.IsNullOrEmpty(InitData))
System.Diagnostics.TextWriterTraceListener (9)
System\Diagnostics\DelimitedListTraceListener.cs (6)
177if (IsEnabled(TraceOptions.ProcessId)) 181if (IsEnabled(TraceOptions.LogicalOperationStack)) 185if (IsEnabled(TraceOptions.ThreadId)) 189if (IsEnabled(TraceOptions.DateTime)) 193if (IsEnabled(TraceOptions.Timestamp)) 197if (IsEnabled(TraceOptions.Callstack))
System\Diagnostics\TextWriterTraceListener.cs (1)
267internal bool IsEnabled(TraceOptions opts) => (opts & TraceOutputOptions) != 0;
System\Diagnostics\XmlWriterTraceListener.cs (2)
291bool writeLogicalOps = IsEnabled(TraceOptions.LogicalOperationStack); 292bool writeCallstack = IsEnabled(TraceOptions.Callstack);
System.Diagnostics.TraceSource (10)
System\Diagnostics\TraceListener.cs (10)
22private TraceOptions _traceOptions = TraceOptions.None; 148public TraceOptions TraceOutputOptions 394if (IsEnabled(TraceOptions.ProcessId)) 397if (IsEnabled(TraceOptions.LogicalOperationStack)) 421if (IsEnabled(TraceOptions.ThreadId)) 424if (IsEnabled(TraceOptions.DateTime)) 427if (IsEnabled(TraceOptions.Timestamp)) 430if (IsEnabled(TraceOptions.Callstack)) 436internal bool IsEnabled(TraceOptions opts)