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