133 references to SourceLevels
SMDiagnostics (9)
System\ServiceModel\Diagnostics\DiagnosticTraceSource.cs (1)
16internal DiagnosticTraceSource(string name, string eventSourceName, SourceLevels level)
System\ServiceModel\Diagnostics\LegacyDiagnosticTrace.cs (7)
28const SourceLevels DefaultLevel = SourceLevels.Off; 31protected override void OnSetLevel(SourceLevels level) 35if (this.TraceSource.Switch.Level != SourceLevels.Off && 36level == SourceLevels.Off) 42this.shouldUseActivity = (level & SourceLevels.ActivityTracing) != 0; 199if (this.Level != SourceLevels.Off)
System\ServiceModel\Diagnostics\PiiTraceSource.cs (1)
30internal PiiTraceSource(string name, string eventSourceName, SourceLevels levels)
System (16)
compmod\system\diagnostics\SeverityFilter.cs (3)
11private SourceLevels level; 13public EventTypeFilter(SourceLevels level) { 23public SourceLevels EventType {
compmod\system\diagnostics\SourceSwitch.cs (3)
21public SourceLevels Level { 23return (SourceLevels) SwitchSetting; 36SwitchSetting = (int) Enum.Parse(typeof(SourceLevels), Value, true);
compmod\system\diagnostics\TraceSource.cs (10)
25private SourceLevels switchLevel; 30: this(name, SourceLevels.Off) { 33public TraceSource(string name, SourceLevels defaultLevel) { 89internalSwitch.Level = (SourceLevels) Enum.Parse(typeof(SourceLevels), sourceElement.SwitchValue); 193internalSwitch.Level = (SourceLevels) Enum.Parse(typeof(SourceLevels), sourceElement.SwitchValue); 206internalSwitch.Level = (SourceLevels) Enum.Parse(typeof(SourceLevels), sourceElement.SwitchValue); 208internalSwitch.Level = SourceLevels.Off;
System.Runtime.Serialization (4)
System\Runtime\Serialization\CodeGenerator.cs (4)
181if ((codeGenSwitch.Level & SourceLevels.Verbose) == SourceLevels.Verbose) 183else if ((codeGenSwitch.Level & SourceLevels.Information) == SourceLevels.Information)
System.ServiceModel (8)
System\ServiceModel\Administration\AppDomainInstanceProvider.cs (3)
143SourceLevels newLevel = (SourceLevels)Enum.Parse(typeof(SourceLevels), (string)instance.GetProperty(AdministrationStrings.TraceLevel));
System\ServiceModel\Diagnostics\MessageLogger.cs (1)
731tempSource.Switch.Level = SourceLevels.Information;
System\ServiceModel\Dispatcher\CodeGenerator.cs (4)
61if ((codeGenSwitch.Level & SourceLevels.Verbose) == SourceLevels.Verbose) 63else if ((codeGenSwitch.Level & SourceLevels.Information) == SourceLevels.Information)
System.ServiceModel.Internals (25)
System\Runtime\Diagnostics\DiagnosticTraceBase.cs (25)
33SourceLevels level; 96SourceLevels FixLevel(SourceLevels level) 99if (((level & ~SourceLevels.Information) & SourceLevels.Verbose) != 0) 101level |= SourceLevels.Verbose; 103else if (((level & ~SourceLevels.Warning) & SourceLevels.Information) != 0) 105level |= SourceLevels.Information; 107else if (((level & ~SourceLevels.Error) & SourceLevels.Warning) != 0) 109level |= SourceLevels.Warning; 111if (((level & ~SourceLevels.Critical) & SourceLevels.Error) != 0) 113level |= SourceLevels.Error; 115if ((level & SourceLevels.Critical) != 0) 117level |= SourceLevels.Critical; 122if (level == SourceLevels.ActivityTracing) 124level = SourceLevels.Off; 130protected virtual void OnSetLevel(SourceLevels level) 138void SetLevel(SourceLevels level) 140SourceLevels fixedLevel = FixLevel(level); 150this.tracingEnabled = this.HaveListeners && (level != SourceLevels.Off); 158void SetLevelThreadSafe(SourceLevels level) 166public SourceLevels Level
System.Transactions (26)
System\Transactions\Trace\DiagnosticTrace.cs (26)
42static SourceLevels level; 116static SourceLevels FixLevel(SourceLevels level) 119if (((level & ~SourceLevels.Information) & SourceLevels.Verbose) != 0) 121level |= SourceLevels.Verbose; 123else if (((level & ~SourceLevels.Warning) & SourceLevels.Information) != 0) 125level |= SourceLevels.Information; 127else if (((level & ~SourceLevels.Error) & SourceLevels.Warning) != 0) 129level |= SourceLevels.Warning; 131if (((level & ~SourceLevels.Critical) & SourceLevels.Error) != 0) 133level |= SourceLevels.Error; 135if ((level & SourceLevels.Critical) != 0) 137level |= SourceLevels.Critical; 140return (level & ~SourceLevels.Warning) != 0 ? level | SourceLevels.ActivityTracing : level; 143static void SetLevel(SourceLevels level) 145SourceLevels fixedLevel = FixLevel(level); 159static void SetLevelThreadSafe(SourceLevels level) 170internal static SourceLevels Level 244DiagnosticTrace.traceSource = new TraceSource(DiagnosticTrace.TraceSourceName, SourceLevels.Critical); 540int level = (int)type & (int)SourceLevels.Verbose; 592if (DiagnosticTrace.Level != SourceLevels.Off)
System.Workflow.Activities (2)
ActivityTrace.cs (2)
45activity.Switch = new SourceSwitch("System.Workflow.Activities", SourceLevels.Off.ToString()); 48rules.Switch = new SourceSwitch("System.Workflow.Activities.Rules", SourceLevels.Off.ToString());
System.Workflow.ComponentModel (3)
AuthoringOM\Trace.cs (3)
62runtime.Switch = new SourceSwitch("System.Workflow.Runtime", SourceLevels.Off.ToString()); 66tracking.Switch = new SourceSwitch("System.Workflow.Runtime.Tracking", SourceLevels.Off.ToString()); 69host.Switch = new SourceSwitch("System.Workflow.Runtime.Hosting", SourceLevels.Off.ToString());
WindowsBase (2)
Base\System\Diagnostics\PresentationTraceSources.cs (2)
135if (source.Switch.Level == SourceLevels.Off 144source.Switch.Level = SourceLevels.Warning;
WsatConfig (19)
CommandLine\ArgumentsParser.cs (2)
228SourceLevels level; 241config.TraceLevel = (SourceLevels)temp;
Configuration\Utilities.cs (9)
90internal static bool ParseSourceLevel(string levelString, out SourceLevels level) 92level = SourceLevels.Off; 96level = SourceLevels.Off; 100level = SourceLevels.Error; 104level = SourceLevels.Critical; 108level = SourceLevels.Warning; 112level = SourceLevels.Information; 116level = SourceLevels.Verbose; 120level = SourceLevels.All;
Configuration\WsatConfiguration.cs (8)
28internal const SourceLevels DefaultTraceLevel = SourceLevels.Warning; 49SourceLevels diagnosticTraceLevel = DefaultTraceLevel; 165internal SourceLevels TraceLevel 336TraceLevel = (SourceLevels)wsatConfigProvider.ReadUInt32(WsatKeys.RegistryEntryTraceLevel, (uint)DefaultTraceLevel); 907SourceLevels level = this.TraceLevel; 908if (level != SourceLevels.All) 910level = level & ~SourceLevels.ActivityTracing;
WsatUI (19)
Configuration\Utilities.cs (9)
90internal static bool ParseSourceLevel(string levelString, out SourceLevels level) 92level = SourceLevels.Off; 96level = SourceLevels.Off; 100level = SourceLevels.Error; 104level = SourceLevels.Critical; 108level = SourceLevels.Warning; 112level = SourceLevels.Information; 116level = SourceLevels.Verbose; 120level = SourceLevels.All;
Configuration\WsatConfiguration.cs (5)
28internal const SourceLevels DefaultTraceLevel = SourceLevels.Warning; 49SourceLevels diagnosticTraceLevel = DefaultTraceLevel; 165internal SourceLevels TraceLevel 336TraceLevel = (SourceLevels)wsatConfigProvider.ReadUInt32(WsatKeys.RegistryEntryTraceLevel, (uint)DefaultTraceLevel);
MMCUI\TraceOptionsForm.cs (5)
85SourceLevels traceLevel; 110SourceLevels configuredLevel = config.TraceLevel & ~SourceLevels.ActivityTracing; // remove the activityTracing bit 114SourceLevels level; 117if ((level & ~SourceLevels.ActivityTracing) == configuredLevel)