52 references to TraceOptions
System (26)
compmod\system\diagnostics\DelimitedListTraceListener.cs (6)
166
if (IsEnabled(
TraceOptions
.ProcessId))
170
if (IsEnabled(
TraceOptions
.LogicalOperationStack))
174
if (IsEnabled(
TraceOptions
.ThreadId))
178
if (IsEnabled(
TraceOptions
.DateTime))
182
if (IsEnabled(
TraceOptions
.Timestamp))
186
if (IsEnabled(
TraceOptions
.Callstack))
compmod\system\diagnostics\ListenerElementsCollection.cs (8)
116
private static readonly ConfigurationProperty _propOutputOpts = new ConfigurationProperty("traceOutputOptions", typeof(
TraceOptions
),
TraceOptions
.None, ConfigurationPropertyOptions.None);
167
[ConfigurationProperty("traceOutputOptions", DefaultValue = (
TraceOptions
)
TraceOptions
.None)]
168
public
TraceOptions
TraceOutputOptions {
170
return (
TraceOptions
) this[_propOutputOpts];
217
if (_attributes != null || ElementInformation.Properties[_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions !=
TraceOptions
.None || !String.IsNullOrEmpty(InitData))
328
if (_attributes != null || ElementInformation.Properties[_propFilter.Name].ValueOrigin == PropertyValueOrigin.SetHere || TraceOutputOptions !=
TraceOptions
.None || !String.IsNullOrEmpty(InitData))
compmod\system\diagnostics\TraceListener.cs (10)
29
TraceOptions
traceOptions =
TraceOptions
.None;
158
public
TraceOptions
TraceOutputOptions {
414
if (IsEnabled(
TraceOptions
.ProcessId))
417
if (IsEnabled(
TraceOptions
.LogicalOperationStack)) {
432
if (IsEnabled(
TraceOptions
.ThreadId))
435
if (IsEnabled(
TraceOptions
.DateTime))
438
if (IsEnabled(
TraceOptions
.Timestamp))
441
if (IsEnabled(
TraceOptions
.Callstack))
446
internal bool IsEnabled(
TraceOptions
opts) {
compmod\system\diagnostics\XmlWriterTraceListener.cs (2)
247
bool writeLogicalOps = IsEnabled(
TraceOptions
.LogicalOperationStack);
248
bool writeCallstack = IsEnabled(
TraceOptions
.Callstack);
System.Core (18)
System\Diagnostics\Eventing\EventProviderTraceListener.cs (7)
203
if ((eventCache != null) && (TraceOutputOptions &
TraceOptions
.Callstack) != 0)
264
if ((eventCache != null) && (TraceOutputOptions &
TraceOptions
.Callstack) != 0)
293
if ((eventCache != null) && (TraceOutputOptions &
TraceOptions
.Callstack) != 0)
322
if ((eventCache != null) && (TraceOutputOptions &
TraceOptions
.Callstack) != 0)
353
if ((eventCache != null) && (TraceOutputOptions &
TraceOptions
.Callstack) != 0)
368
if ((eventCache != null) && (TraceOutputOptions &
TraceOptions
.Callstack) != 0)
419
if ((eventCache != null) && (TraceOutputOptions &
TraceOptions
.Callstack) != 0)
System\Diagnostics\EventSchemaTraceListener.cs (11)
272
private static void BuildHeader(StringBuilder writer, String source, TraceEventType eventType, int id, TraceEventCache eventCache, string relatedActivityId, bool isUserData,
TraceOptions
opts) {
304
if ((
TraceOptions
.DateTime & opts) != 0) {
326
if (eventCache != null && ((
TraceOptions
.ProcessId |
TraceOptions
.ThreadId) & opts) != 0) {
355
private static void BuildFooter(StringBuilder writer, TraceEventType eventType, TraceEventCache eventCache, bool isUserData,
TraceOptions
opts) {
406
if (eventCache != null && ((
TraceOptions
.LogicalOperationStack |
TraceOptions
.Callstack |
TraceOptions
.Timestamp) & opts) != 0) {
409
if ((
TraceOptions
.Timestamp & opts) != 0) {
415
if ((
TraceOptions
.LogicalOperationStack & opts) != 0) {
428
if ((
TraceOptions
.Callstack & opts) != 0) {
System.Web (8)
IisTraceListener.cs (8)
133
if (eventCache == null || TraceOutputOptions ==
TraceOptions
.None) {
139
if (IsEnabled(
TraceOptions
.ProcessId)) {
144
if (IsEnabled(
TraceOptions
.LogicalOperationStack)) {
158
if (IsEnabled(
TraceOptions
.ThreadId)) {
163
if (IsEnabled(
TraceOptions
.DateTime)) {
168
if (IsEnabled(
TraceOptions
.Timestamp)) {
173
if (IsEnabled(
TraceOptions
.Callstack)) {
181
private bool IsEnabled(
TraceOptions
opts) {