213 references to Trace
BuildValidator (1)
Program.cs (1)
32
System.Diagnostics.
Trace
.Listeners.Clear();
csc (2)
src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));
http2cat (7)
Program.cs (7)
40
Trace
.Assert(headersFrame.Type == Http2FrameType.HEADERS, headersFrame.Type.ToString());
41
Trace
.Assert((headersFrame.Flags & (byte)Http2HeadersFrameFlags.END_HEADERS) != 0);
42
Trace
.Assert((headersFrame.Flags & (byte)Http2HeadersFrameFlags.END_STREAM) == 0);
55
Trace
.Assert(dataFrame.Type == Http2FrameType.DATA);
56
Trace
.Assert((dataFrame.Flags & (byte)Http2DataFrameFlags.END_STREAM) == 0);
64
Trace
.Assert(trailersFrame.Type == Http2FrameType.HEADERS);
65
Trace
.Assert((trailersFrame.Flags & (byte)Http2DataFrameFlags.END_STREAM) == 1);
Microsoft.Arcade.Common (2)
ExponentialRetry.cs (2)
46
Trace
.TraceInformation(attempt);
59
Trace
.TraceInformation($"{attempt} failed. Waiting {delay} before next try.");
Microsoft.Build (24)
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
425
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
495
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
536
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
577
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
668
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log telemetry event '{1}'", _taskLocation.ToString(), eventName));
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
Definition\Project.cs (7)
2056
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Explicitly marked dirty, eg., because a global property was set, or an import, such as a .user file, was created on disk [{0}] [PC Hash {1}]", FullPath, ProjectCollection.GetHashCode()));
2068
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1}] [PC Hash {2}]", Xml.LastDirtyReason, FullPath, ProjectCollection.GetHashCode()));
2079
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because toolsets updated [{0}] [PC Hash {1}]", FullPath, ProjectCollection.GetHashCode()));
2095
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1} - {2}] [PC Hash {3}]", reason, FullPath, import.ImportedProject.FullPath == FullPath ? String.Empty : import.ImportedProject.FullPath, ProjectCollection.GetHashCode()));
2986
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Initially set global property {0} to '{1}' [{2}]", name, displayValue, FullPath));
2991
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Changed global property {0} from '{1}' to '{2}' [{3}]", name, displayOriginalValue, displayValue, FullPath));
3199
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Remove global property {0}", name));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
Evaluation\Evaluator.cs (1)
825
Trace
.WriteLine(line + output + line);
Evaluation\ProjectRootElementCache.cs (1)
676
Trace
.WriteLine($"{prefix} {Process.GetCurrentProcess().Id} | {message}{param1}");
Instance\ProjectInstance.cs (1)
3169
Trace
.WriteLine($"MSBUILD: Creating a ProjectInstance from an unevaluated state [{FullPath}]");
Tracing.cs (6)
117
Trace
.WriteLine("================================================");
118
Trace
.WriteLine(s_slot);
121
Trace
.WriteLine(System.Environment.StackTrace);
136
Trace
.WriteLine(item.ToString());
148
Trace
.WriteLine(s_currentAssemblyName);
151
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Build.Engine.OM.UnitTests (3)
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
Microsoft.Build.Tasks.Core (9)
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
Tracing.cs (6)
117
Trace
.WriteLine("================================================");
118
Trace
.WriteLine(s_slot);
121
Trace
.WriteLine(System.Environment.StackTrace);
136
Trace
.WriteLine(item.ToString());
148
Trace
.WriteLine(s_currentAssemblyName);
151
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Build.Utilities.Core (9)
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
Tracing.cs (6)
117
Trace
.WriteLine("================================================");
118
Trace
.WriteLine(s_slot);
121
Trace
.WriteLine(System.Environment.StackTrace);
136
Trace
.WriteLine(item.ToString());
148
Trace
.WriteLine(s_currentAssemblyName);
151
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Cci.Extensions (5)
HostEnvironment.cs (4)
562
Trace
.TraceError(format, arguments);
566
Trace
.TraceWarning(format, arguments);
644
Trace
.TraceWarning("Found '{0}' with version '{1}' instead of '{2}'.",
653
Trace
.TraceWarning("Found '{0}' with PublicKeyToken '{1}' instead of '{2}'.",
Mappings\ElementMapping.cs (1)
60
Trace
.TraceWarning("Duplicate element {0} in set!", element.ToString());
Microsoft.CodeAnalysis.EditorFeatures (2)
Suggestions\SuggestedActionsSource.cs (1)
282
Trace
.WriteLine("given range is not current");
Suggestions\SuggestedActionsSource_Async.cs (1)
252
Trace
.WriteLine("given range is not current");
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
180
var didEnqueue = _queue.TryEnqueue((item,
Trace
.CorrelationManager.ActivityId, combinedCancellationToken));
239
Trace
.CorrelationManager.ActivityId = activityId;
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\BrokeredServiceBase.cs (2)
50
Trace
.Listeners.Clear();
51
Trace
.Listeners.Add(new ThrowingTraceListener());
Microsoft.CodeAnalysis.Test.Utilities (2)
ModuleInitializer.cs (2)
20
Trace
.Listeners.Clear();
21
Trace
.Listeners.Add(new ThrowingTraceListener());
Microsoft.CodeAnalysis.Workspaces (3)
Log\TraceLogger.cs (3)
22
=>
Trace
.WriteLine(string.Format("[{0}] {1} - {2}", Environment.CurrentManagedThreadId, functionId.ToString(), logMessage.GetMessage()));
25
=>
Trace
.WriteLine(string.Format("[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage()));
30
Trace
.WriteLine(string.Format("[{0}] End({1}) : [{2}ms] {3}", Environment.CurrentManagedThreadId, uniquePairId, delta, functionString));
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
RequestExecutionQueue.cs (2)
180
var didEnqueue = _queue.TryEnqueue((item,
Trace
.CorrelationManager.ActivityId, combinedCancellationToken));
239
Trace
.CorrelationManager.ActivityId = activityId;
Microsoft.Extensions.Logging.TraceSource (2)
TraceSourceScope.cs (2)
24
Trace
.CorrelationManager.StartLogicalOperation(state);
35
Trace
.CorrelationManager.StopLogicalOperation();
Microsoft.ML.Tests (1)
Transformers\CategoricalHashTests.cs (1)
172
System.Diagnostics.
Trace
.WriteLine(slots.Items().Select(x => x.Value.ToString()).Distinct());
Microsoft.VisualStudio.IntegrationTest.Setup (2)
TestTraceListener.cs (2)
139
Trace
.Listeners.Clear();
140
Trace
.Listeners.Add(Instance);
MSBuild (3)
DebugUtils.cs (1)
80
Trace
.Assert(!string.IsNullOrEmpty(nodeMode));
ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
MSBuildTaskHost (2)
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (2)
33
Trace
.WriteLine(String.Format(CultureInfo.CurrentCulture, formatstring, parameters), category);
37
Trace
.WriteLine(formatstring, category);
netstandard (1)
netstandard.cs (1)
702
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
Trace
))]
PresentationCore (72)
MS\Internal\AppModel\SiteOfOriginContainer.cs (2)
45
System.Diagnostics.
Trace
.TraceInformation(
180
System.Diagnostics.
Trace
.TraceInformation(
MS\Internal\AppModel\SiteOfOriginPart.cs (9)
49
System.Diagnostics.
Trace
.TraceInformation(
61
System.Diagnostics.
Trace
.TraceInformation(
89
System.Diagnostics.
Trace
.TraceInformation(
105
System.Diagnostics.
Trace
.TraceInformation(
119
System.Diagnostics.
Trace
.TraceInformation(
132
System.Diagnostics.
Trace
.TraceInformation(
158
System.Diagnostics.
Trace
.TraceInformation(
182
System.Diagnostics.
Trace
.TraceInformation(
192
System.Diagnostics.
Trace
.TraceInformation(
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
214
System.Diagnostics.
Trace
.WriteLine("Ignoring unhandled stroke tag in ISF stroke descriptor");
MS\Internal\IO\Packaging\NetStream.cs (19)
75
System.Diagnostics.
Trace
.TraceInformation("NetStream.NetStream()");
127
System.Diagnostics.
Trace
.TraceInformation("NetStream.Read() offset:{0} length:{1}", _position, count );
261
System.Diagnostics.
Trace
.TraceInformation("NetStream.Seek() pos:{0}", temp);
287
System.Diagnostics.
Trace
.TraceInformation("NetStream.set_Position() pos:{0}", value);
378
System.Diagnostics.
Trace
.TraceInformation("NetStream.Close()");
390
System.Diagnostics.
Trace
.TraceInformation("NetStream.Dispose(bool) - mark as closed");
422
System.Diagnostics.
Trace
.TraceInformation("NetStream.Dispose(bool) - exiting");
511
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack() - exiting early because we are closed");
528
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack (offset,length):({0},{1})", _highWaterMark, read);
551
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack() - read complete - EndRead() returned zero");
623
System.Diagnostics.
Trace
.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1} (padded to {2})",
632
System.Diagnostics.
Trace
.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1}", block.Offset, block.Length);
698
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() total byteranges:{0} after merging:{1}", _unmergedBlocks, _byteRangesAvailable.Count);
939
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - byteRange data Event signaled");
960
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - byteRange request satisfied by full download - increasing threshold");
1006
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - Request Data (BeginRead)");
1079
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - wait start"); // for debugging deadlock
1100
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - wait end [{0}]", eventFired);
1126
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() satisfied with {0} bytes", dataAvailable);
MS\Internal\IO\Packaging\ResponseStream.cs (1)
234
System.Diagnostics.
Trace
.TraceInformation("ContainerResponseStream.Dispose(bool)");
MS\Internal\MediaTrace.cs (8)
62
System.Diagnostics.
Trace
.Listeners.Add(new TextWriterTraceListener(Console.Out));
80
System.Diagnostics.
Trace
.WriteLine(_switch.Description + " " + _switch.DisplayName + " : " + message);
107
System.Diagnostics.
Trace
.Indent();
112
System.Diagnostics.
Trace
.Unindent();
117
System.Diagnostics.
Trace
.Indent();
123
System.Diagnostics.
Trace
.WriteLine(_switch.Description + " " + _switch.DisplayName + " : " + message);
124
System.Diagnostics.
Trace
.Indent();
130
System.Diagnostics.
Trace
.Unindent();
System\IO\Packaging\PackWebRequest.cs (3)
80
System.Diagnostics.
Trace
.TraceInformation(
152
System.Diagnostics.
Trace
.TraceInformation(
168
System.Diagnostics.
Trace
.TraceInformation(
System\IO\Packaging\PackWebRequestFactory.cs (3)
64
System.Diagnostics.
Trace
.TraceInformation(
103
System.Diagnostics.
Trace
.TraceInformation(
116
System.Diagnostics.
Trace
.TraceInformation(
System\IO\Packaging\PackWebResponse.cs (22)
66
System.Diagnostics.
Trace
.TraceInformation(
89
System.Diagnostics.
Trace
.TraceInformation(
99
System.Diagnostics.
Trace
.TraceInformation(
133
System.Diagnostics.
Trace
.TraceInformation(
172
System.Diagnostics.
Trace
.TraceInformation(
194
System.Diagnostics.
Trace
.TraceInformation(
484
System.Diagnostics.
Trace
.TraceInformation(
505
System.Diagnostics.
Trace
.TraceInformation(
518
System.Diagnostics.
Trace
.TraceInformation(
541
System.Diagnostics.
Trace
.TraceInformation(
600
System.Diagnostics.
Trace
.TraceInformation(
617
System.Diagnostics.
Trace
.TraceInformation(
626
System.Diagnostics.
Trace
.TraceInformation(
644
System.Diagnostics.
Trace
.TraceInformation(
657
System.Diagnostics.
Trace
.TraceInformation(
668
System.Diagnostics.
Trace
.TraceInformation(
768
System.Diagnostics.
Trace
.TraceInformation(
790
System.Diagnostics.
Trace
.TraceError(
805
System.Diagnostics.
Trace
.TraceInformation(
834
System.Diagnostics.
Trace
.TraceInformation(
876
System.Diagnostics.
Trace
.TraceError(
891
System.Diagnostics.
Trace
.TraceInformation(
System\Windows\Media\Animation\Clock.cs (2)
4194
Trace
.Write(builder.ToString());
4240
Trace
.Write(builder.ToString());
System\Windows\Media\Animation\Timeline.cs (2)
975
Trace
.Write(builder.ToString());
1018
Trace
.Write(builder.ToString());
PresentationFramework (8)
MS\Internal\Documents\DocumentsTrace.cs (4)
109
listeners = System.Diagnostics.
Trace
.Listeners;
137
System.Diagnostics.
Trace
.WriteLine($"{_switch.Description} {_switch.DisplayName} : {message}");
169
System.Diagnostics.
Trace
.Indent();
178
System.Diagnostics.
Trace
.Unindent();
MS\Internal\IO\Packaging\XamlFilter.cs (1)
100
System.Diagnostics.
Trace
.TraceInformation("New Xaml filter created.");
System\Windows\Documents\Speller.cs (2)
362
System.Diagnostics.
Trace
.Write(string.Create(CultureInfo.InvariantCulture, $"Unloading dictionary failed. Original Uri:{uri}, file Uri:{info.PathUri}, exception:{e}"));
1588
System.Diagnostics.
Trace
.Write(string.Create(CultureInfo.InvariantCulture, $"Failure to delete temporary file with custom dictionary data. file Uri:{tempLocationUri},exception:{e}"));
System\Windows\Interop\HwndHost.cs (1)
991
Trace
.WriteLineIf(hwnd == null, $"- Warning - Notification Window is null\n{new System.Diagnostics.StackTrace(true).ToString()}");
PresentationUI (2)
MS\Internal\Documents\Application\Trace.cs (2)
24
System.Diagnostics.
Trace
.WriteLineIf(
42
System.Diagnostics.
Trace
.WriteLineIf(
System (1)
src\libraries\shims\System\ref\System.cs (1)
540
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
Trace
))]
System.Configuration.ConfigurationManager (6)
System\Diagnostics\TraceConfiguration.cs (6)
19
Trace
.Refreshing += RefreshingConfiguration;
157
Trace
.UseGlobalLock = traceSection.UseGlobalLock;
158
Trace
.AutoFlush = traceSection.AutoFlush;
159
Trace
.IndentSize = traceSection.IndentSize;
165
Trace
.Listeners.Clear();
168
Trace
.Listeners.Add(listener);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
243
InternalWrite(eventCache != null ?
Trace
.CorrelationManager.ActivityId : Guid.Empty);
System.Diagnostics.TraceSource (21)
System\Diagnostics\TraceEventCache.cs (1)
60
return
Trace
.CorrelationManager.LogicalOperationStack;
System\Diagnostics\TraceSource.cs (18)
207
if (
Trace
.AutoFlush) listener.Flush();
221
if (
Trace
.AutoFlush) listener.Flush();
227
if (
Trace
.AutoFlush) listener.Flush();
252
if (
Trace
.AutoFlush) listener.Flush();
266
if (
Trace
.AutoFlush) listener.Flush();
272
if (
Trace
.AutoFlush) listener.Flush();
297
if (
Trace
.AutoFlush) listener.Flush();
311
if (
Trace
.AutoFlush) listener.Flush();
317
if (
Trace
.AutoFlush) listener.Flush();
342
if (
Trace
.AutoFlush) listener.Flush();
356
if (
Trace
.AutoFlush) listener.Flush();
362
if (
Trace
.AutoFlush) listener.Flush();
387
if (
Trace
.AutoFlush) listener.Flush();
401
if (
Trace
.AutoFlush) listener.Flush();
407
if (
Trace
.AutoFlush) listener.Flush();
448
if (
Trace
.AutoFlush)
466
if (
Trace
.AutoFlush)
475
if (
Trace
.AutoFlush)
System\Diagnostics\TraceSwitch.cs (2)
84
Trace
.WriteLine(SR.Format(SR.TraceSwitchLevelTooLow, DisplayName));
89
Trace
.WriteLine(SR.Format(SR.TraceSwitchLevelTooHigh, DisplayName));
System.Private.Windows.Core.TestUtilities (11)
ModuleInitializer.cs (2)
14
Trace
.Listeners.Clear();
15
Trace
.Listeners.Add(ThrowingTraceListener.Instance);
NoAssertContext.cs (9)
29
private static readonly TraceListener? s_defaultListener =
Trace
.Listeners["Default"];
43
Trace
.Listeners.Add(s_noAssertListener);
44
if (s_defaultListener is not null &&
Trace
.Listeners.Contains(s_defaultListener))
47
Trace
.Listeners.Remove(s_defaultListener);
50
if (
Trace
.Listeners.OfType<ThrowingTraceListener>().FirstOrDefault() is { } throwingTraceListener)
53
Trace
.Listeners.Remove(throwingTraceListener);
85
Trace
.Listeners.Add(s_defaultListener!);
90
Trace
.Listeners.Add(ThrowingTraceListener.Instance);
93
Trace
.Listeners.Remove(s_noAssertListener);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ImageCollectionCodeDomSerializerTests.cs (1)
74
Trace
.Listeners.Clear();
vbc (2)
src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));
VBCSCompiler (2)
src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));