5 writes to Switch
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Remote\InProcRemostHostClient.cs (1)
165Switch = { Level = SourceLevels.Warning },
Microsoft.Extensions.Logging.TraceSource (2)
TraceSourceLoggerProvider.cs (2)
69traceSource.Switch = _rootSourceSwitch; 89traceSource.Switch = parentTraceSource.Switch;
System.Configuration.ConfigurationManager (2)
System\Diagnostics\TraceConfiguration.cs (2)
140traceSource.Switch = (SourceSwitch)TraceUtils.GetRuntimeObject(typeName, typeof(SourceSwitch), name); 144traceSource.Switch = new SourceSwitch(name, traceSource.DefaultLevel.ToString());
14 references to Switch
Microsoft.Extensions.Logging.TraceSource (4)
TraceSourceLogger.cs (1)
65return _traceSource.Switch.ShouldTrace(traceEventType);
TraceSourceLoggerProvider.cs (3)
89traceSource.Switch = parentTraceSource.Switch; 109return string.IsNullOrEmpty(traceSource.Switch.DisplayName) == string.IsNullOrEmpty(traceSource.Name) && 110traceSource.Switch.Level == SourceLevels.Off;
System.Configuration.ConfigurationManager (7)
System\Diagnostics\TraceConfiguration.cs (7)
58traceSource.Switch.Level = Enum.Parse<SourceLevels>(sourceElement.SwitchValue); 65if (sourceElement.SwitchName != traceSource.Switch.DisplayName) 69traceSource.Switch.Refresh(); 77traceSource.Switch.Level = Enum.Parse<SourceLevels>(sourceElement.SwitchValue); 81traceSource.Switch.Level = SourceLevels.Off; 108traceSource.Switch.Level = traceSource.DefaultLevel; 116Type currentType = traceSource.Switch.GetType();
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceSource.cs (1)
560ArgumentNullException.ThrowIfNull(value, nameof(Switch));
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (2)
167s_informationLogging = s_traceSource.Switch.ShouldTrace(TraceEventType.Information); 184s_verboseLogging = s_traceSource.Switch.ShouldTrace(TraceEventType.Verbose);