33 references to TraceLevel
Microsoft.CodeAnalysis.LanguageServer (6)
Testing\RunTestsHandler.cs (6)
155private static TraceLevel GetTraceLevel(ServerConfiguration serverConfiguration) 160Microsoft.Extensions.Logging.LogLevel.Trace or Microsoft.Extensions.Logging.LogLevel.Debug => TraceLevel.Verbose, 161Microsoft.Extensions.Logging.LogLevel.Information => TraceLevel.Info, 162Microsoft.Extensions.Logging.LogLevel.Warning => TraceLevel.Warning, 163Microsoft.Extensions.Logging.LogLevel.Error or Microsoft.Extensions.Logging.LogLevel.Critical => TraceLevel.Error, 164Microsoft.Extensions.Logging.LogLevel.None => TraceLevel.Off,
netstandard (1)
netstandard.cs (1)
706[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.TraceLevel))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
544[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.TraceLevel))]
System.Diagnostics.TraceSource (19)
System\Diagnostics\TraceSwitch.cs (19)
12[SwitchLevel(typeof(TraceLevel))] 30public TraceLevel Level 34return (TraceLevel)SwitchSetting; 39if (value < TraceLevel.Off || value > TraceLevel.Verbose) 51public bool TraceError => Level >= TraceLevel.Error; 58public bool TraceWarning => Level >= TraceLevel.Warning; 65public bool TraceInfo => Level >= TraceLevel.Info; 72public bool TraceVerbose => Level == TraceLevel.Verbose; 82if (level < (int)TraceLevel.Off) 85SwitchSetting = (int)TraceLevel.Off; 87else if (level > (int)TraceLevel.Verbose) 90SwitchSetting = (int)TraceLevel.Verbose; 97TraceLevel level = Enum.Parse<TraceLevel>(Value, true); 99if (level < TraceLevel.Off) 101level = TraceLevel.Off; 103else if (level > TraceLevel.Verbose) 105level = TraceLevel.Verbose;
WindowsFormsIntegration (6)
System\Windows\Integration\ElementHost.cs (5)
644Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside SyncHwndSrcImeStatus(), this = " + this); 681Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Verbose, "SetChildElementsIsImeEnabled, element = " + element); 702Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside OnHwndSrcWmInputLangChange(), this = " + this); 731Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside OnHwndSrcWmImeNotify(), this = " + this); 762Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Verbose, "Inside OnHwndSourceMsgNotifyElementHost()");
System\Windows\Integration\WindowsFormsHost.cs (1)
92Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside SyncChildImeEnabledContext(), this = " + this);