207 references to Trace
csc (2)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));
ILCompiler.ReadyToRun (1)
Compiler\PettisHansenSort\PettisHansen.cs (1)
83
Trace
.Assert(unioned);
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (1)
83
Trace
.Assert(unioned);
Microsoft.Arcade.Common (2)
ExponentialRetry.cs (2)
46
Trace
.TraceInformation(attempt);
59
Trace
.TraceInformation($"{attempt} failed. Waiting {delay} before next try.");
Microsoft.Build (21)
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
426
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
496
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
537
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
578
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
669
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log telemetry event '{1}'", _taskLocation.ToString(), eventName));
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()));
2989
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Initially set global property {0} to '{1}' [{2}]", name, displayValue, FullPath));
2994
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Changed global property {0} from '{1}' to '{2}' [{3}]", name, displayOriginalValue, displayValue, FullPath));
3202
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Remove global property {0}", name));
Evaluation\Evaluator.cs (1)
825
Trace
.WriteLine(line + output + line);
Evaluation\ProjectRootElementCache.cs (1)
667
Trace
.WriteLine($"{prefix} {Process.GetCurrentProcess().Id} | {message}{param1}");
Instance\ProjectInstance.cs (1)
3269
Trace
.WriteLine($"MSBUILD: Creating a ProjectInstance from an unevaluated state [{FullPath}]");
src\msbuild\src\Shared\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.Framework (2)
ErrorUtilities.cs (2)
24
Trace
.WriteLine(message, category);
32
Trace
.WriteLine(handler.GetFormattedText(), category);
Microsoft.Build.Tasks.Core (6)
src\msbuild\src\Shared\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 (6)
src\msbuild\src\Shared\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.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.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.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\VsMsdeploy.cs (1)
206
Diagnostics.
Trace
.WriteLine("MSDeploy TraceEvent Handler is called with " + msg);
Microsoft.TestPlatform.Build (1)
Tasks\TestTaskUtils.cs (1)
80
System.Diagnostics.
Trace
.WriteLine($">>>> : User specified logger: {arg}");
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");
416
System.Diagnostics.
Trace
.TraceInformation("NetStream.Dispose(bool) - exiting");
505
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack() - exiting early because we are closed");
522
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack (offset,length):({0},{1})", _highWaterMark, read);
545
System.Diagnostics.
Trace
.TraceInformation("NetStream.ReadCallBack() - read complete - EndRead() returned zero");
617
System.Diagnostics.
Trace
.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1} (padded to {2})",
626
System.Diagnostics.
Trace
.TraceInformation("NetStream.MakeByteRangeRequest() offset:{0} length:{1}", block.Offset, block.Length);
692
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() total byteranges:{0} after merging:{1}", _unmergedBlocks, _byteRangesAvailable.Count);
933
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - byteRange data Event signaled");
954
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - byteRange request satisfied by full download - increasing threshold");
1000
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - Request Data (BeginRead)");
1073
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - wait start"); // for debugging deadlock
1094
System.Diagnostics.
Trace
.TraceInformation("NetStream.GetData() - wait end [{0}]", eventFired);
1120
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)
359
System.Diagnostics.
Trace
.Write(string.Create(CultureInfo.InvariantCulture, $"Unloading dictionary failed. Original Uri:{uri}, file Uri:{info.PathUri}, exception:{e}"));
1585
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)
989
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\runtime\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)
22
Trace
.Refreshing += RefreshingConfiguration;
160
Trace
.UseGlobalLock = traceSection.UseGlobalLock;
161
Trace
.AutoFlush = traceSection.AutoFlush;
162
Trace
.IndentSize = traceSection.IndentSize;
168
Trace
.Listeners.Clear();
171
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)
59
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)
34
private static readonly TraceListener? s_defaultListener =
Trace
.Listeners["Default"];
52
Trace
.Listeners.Add(s_noAssertListener);
53
if (s_defaultListener is not null &&
Trace
.Listeners.Contains(s_defaultListener))
56
Trace
.Listeners.Remove(s_defaultListener);
59
if (
Trace
.Listeners.OfType<ThrowingTraceListener>().FirstOrDefault() is { } throwingTraceListener)
62
Trace
.Listeners.Remove(throwingTraceListener);
94
Trace
.Listeners.Add(s_defaultListener!);
99
Trace
.Listeners.Add(ThrowingTraceListener.Instance);
102
Trace
.Listeners.Remove(s_noAssertListener);
System.ServiceModel.Primitives (8)
Internals\System\Runtime\ActionItem.cs (6)
240
previous =
Trace
.CorrelationManager.ActivityId;
242
Trace
.CorrelationManager.ActivityId = _eventTraceActivity.ActivityId;
255
Trace
.CorrelationManager.ActivityId = previous;
284
previous =
Trace
.CorrelationManager.ActivityId;
286
Trace
.CorrelationManager.ActivityId = _eventTraceActivity.ActivityId;
299
Trace
.CorrelationManager.ActivityId = previous;
Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (2)
51
Guid guid =
Trace
.CorrelationManager.ActivityId;
59
Trace
.CorrelationManager.ActivityId = Guid.Empty;
System.Speech (8)
Internal\SrgsCompiler\Graph.cs (2)
109
System.Diagnostics.
Trace
.WriteLine("Grammar compiler, additional Epsilons could have been removed :" + (cStates - Count).ToString(CultureInfo.InvariantCulture));
123
System.Diagnostics.
Trace
.WriteLine("Grammar compiler, additional Epsilons could have been removed post merge transition :" + (cStates - Count).ToString(CultureInfo.InvariantCulture));
Internal\Synthesis\EngineSite.cs (3)
411
Trace
.TraceError("Cannot convert the phonemes correctly. Attempt to start over...");
448
Trace
.TraceError("Failed to convert phonemes. Phoneme queue is empty.");
510
Trace
.TraceError("First event in the queue of the phone mapper is not a PHONEME event");
Recognition\RecognizerBase.cs (2)
480
Trace
.TraceInformation("SAPI does not implement phonetic alphabet selection.");
485
Trace
.TraceError("Cannot force SAPI to set the alphabet to UPS");
Result\RecognitionResult.cs (1)
235
Trace
.TraceError("Cannot convert the pronunciation to IPA alphabet.");
testhost (5)
src\vstest\src\testhost.x86\TestHostTraceListener.cs (5)
23
for (var i = 0; i <
Trace
.Listeners.Count; i++)
25
var listener =
Trace
.Listeners[i];
28
EqtTrace.Verbose($"TestPlatformTraceListener.Setup: Replacing listener {
Trace
.Listeners[i]} with {nameof(TestHostTraceListener)}.");
29
Trace
.Listeners[i] = new TestHostTraceListener();
57
if (!debugMethodFound && (declaringType == typeof(Debug) || declaringType == typeof(
Trace
)))
testhost.arm64 (5)
src\vstest\src\testhost.x86\TestHostTraceListener.cs (5)
23
for (var i = 0; i <
Trace
.Listeners.Count; i++)
25
var listener =
Trace
.Listeners[i];
28
EqtTrace.Verbose($"TestPlatformTraceListener.Setup: Replacing listener {
Trace
.Listeners[i]} with {nameof(TestHostTraceListener)}.");
29
Trace
.Listeners[i] = new TestHostTraceListener();
57
if (!debugMethodFound && (declaringType == typeof(Debug) || declaringType == typeof(
Trace
)))
testhost.x86 (5)
TestHostTraceListener.cs (5)
23
for (var i = 0; i <
Trace
.Listeners.Count; i++)
25
var listener =
Trace
.Listeners[i];
28
EqtTrace.Verbose($"TestPlatformTraceListener.Setup: Replacing listener {
Trace
.Listeners[i]} with {nameof(TestHostTraceListener)}.");
29
Trace
.Listeners[i] = new TestHostTraceListener();
57
if (!debugMethodFound && (declaringType == typeof(Debug) || declaringType == typeof(
Trace
)))
vbc (2)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));
VBCSCompiler (2)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
40
Trace
.Listeners.Clear();
41
Trace
.Listeners.Add(new ExitingTraceListener(logger));