163 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)
parent\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (1)
83
Trace
.Assert(unioned);
Microsoft.Arcade.Common (2)
ExponentialRetry.cs (2)
58
Trace
.TraceInformation(attempt);
85
Trace
.TraceInformation($"{attempt} failed. Waiting {delay} before next try.");
Microsoft.Build (21)
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));
532
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
573
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
614
Trace
.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
705
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)
2073
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()));
2085
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1}] [PC Hash {2}]", Xml.LastDirtyReason, FullPath, ProjectCollection.GetHashCode()));
2096
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because toolsets updated [{0}] [PC Hash {1}]", FullPath, ProjectCollection.GetHashCode()));
2112
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()));
2860
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Initially set global property {0} to '{1}' [{2}]", name, displayValue, FullPath));
2865
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Changed global property {0} from '{1}' to '{2}' [{3}]", name, displayOriginalValue, displayValue, FullPath));
3073
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Remove global property {0}", name));
Evaluation\Evaluator.cs (1)
958
Trace
.WriteLine(line + output + line);
Evaluation\ProjectRootElementCache.cs (1)
685
Trace
.WriteLine($"{prefix} {Process.GetCurrentProcess().Id} | {message}{param1}");
Instance\ProjectInstance.cs (1)
3338
Trace
.WriteLine($"MSBUILD: Creating a ProjectInstance from an unevaluated state [{FullPath}]");
parent\Shared\Tracing.cs (6)
116
Trace
.WriteLine("================================================");
117
Trace
.WriteLine(s_slot);
120
Trace
.WriteLine(System.Environment.StackTrace);
135
Trace
.WriteLine(item.ToString());
147
Trace
.WriteLine(s_currentAssemblyName);
150
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Build.Framework (5)
DebugTrace.cs (5)
12
/// Writes categorized diagnostic messages to <see cref="
Trace
"/> when the
22
/// Writes <paramref name="message"/> to <see cref="
Trace
"/> under the given
33
Trace
.WriteLine(message, category);
38
/// Writes an interpolated message to <see cref="
Trace
"/> under the given
50
Trace
.WriteLine(handler.GetFormattedText(), category);
Microsoft.Build.Tasks.Core (6)
parent\Shared\Tracing.cs (6)
116
Trace
.WriteLine("================================================");
117
Trace
.WriteLine(s_slot);
120
Trace
.WriteLine(System.Environment.StackTrace);
135
Trace
.WriteLine(item.ToString());
147
Trace
.WriteLine(s_currentAssemblyName);
150
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Build.Utilities.Core (6)
parent\Shared\Tracing.cs (6)
116
Trace
.WriteLine("================================================");
117
Trace
.WriteLine(s_slot);
120
Trace
.WriteLine(System.Environment.StackTrace);
135
Trace
.WriteLine(item.ToString());
147
Trace
.WriteLine(s_currentAssemblyName);
150
Trace
.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.CodeAnalysis.Workspaces (3)
Log\TraceEventSink.cs (3)
31
=>
Trace
.WriteLine(string.Format("[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage()));
36
Trace
.WriteLine(string.Format("[{0}] End({1}) : [{2}ms] {3}", Environment.CurrentManagedThreadId, uniquePairId, delta, functionString));
41
=>
Trace
.WriteLine(string.Format("[{0}] {1} - {2}", Environment.CurrentManagedThreadId, functionId.ToString(), message));
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.ProjectData (24)
CacheFileReader.cs (12)
204
System.Diagnostics.
Trace
.TraceWarning(
252
System.Diagnostics.
Trace
.TraceWarning(
293
System.Diagnostics.
Trace
.TraceInformation(
400
System.Diagnostics.
Trace
.TraceWarning(
419
System.Diagnostics.
Trace
.TraceInformation(
538
System.Diagnostics.
Trace
.TraceWarning(
552
System.Diagnostics.
Trace
.TraceInformation(
563
System.Diagnostics.
Trace
.TraceWarning(
943
System.Diagnostics.
Trace
.TraceWarning(
1030
System.Diagnostics.
Trace
.TraceWarning(
1056
System.Diagnostics.
Trace
.TraceWarning(
1143
System.Diagnostics.
Trace
.TraceWarning(
CachePathResolver.cs (1)
894
System.Diagnostics.
Trace
.TraceWarning(
Donor\ProjectDataDonorIndex.Serialization.cs (1)
134
Trace
.TraceWarning("Failed to delete temporary donor index file {0}: {1}", tempPath, ex.Message);
Donor\ProjectDataDonorOptions.cs (3)
27
/// When unset, diagnostics are written to the process-wide <see cref="
Trace
"/>.
57
Trace
.TraceInformation(format, args);
69
Trace
.TraceWarning(format, args);
FrameworkListExpander.cs (1)
134
System.Diagnostics.
Trace
.TraceWarning(
ProjectDataBuildAttemptManifest.cs (1)
82
System.Diagnostics.
Trace
.TraceWarning(
ProjectDataBuildReceipt.cs (2)
94
System.Diagnostics.
Trace
.TraceWarning(
132
System.Diagnostics.
Trace
.TraceWarning(
SdkKnownFrameworkReferenceResolver.cs (1)
76
System.Diagnostics.
Trace
.TraceWarning(
UnsupportedProjectDataMarker.cs (2)
91
System.Diagnostics.
Trace
.TraceWarning(
134
System.Diagnostics.
Trace
.TraceWarning(
Microsoft.NET.ProjectData.Tasks (6)
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\Donor\ProjectDataDonorIndex.Serialization.cs (1)
134
Trace
.TraceWarning("Failed to delete temporary donor index file {0}: {1}", tempPath, ex.Message);
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildAttemptManifest.cs (1)
82
System.Diagnostics.
Trace
.TraceWarning(
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\ProjectDataBuildReceipt.cs (2)
94
System.Diagnostics.
Trace
.TraceWarning(
132
System.Diagnostics.
Trace
.TraceWarning(
src\roslyn\src\ProjectData\Microsoft.NET.ProjectData\UnsupportedProjectDataMarker.cs (2)
91
System.Diagnostics.
Trace
.TraceWarning(
134
System.Diagnostics.
Trace
.TraceWarning(
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)
85
System.Diagnostics.
Trace
.WriteLine($">>>> : User specified logger: {arg}");
netstandard (1)
netstandard.cs (1)
702
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.
Trace
))]
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (1)
214
System.Diagnostics.
Trace
.WriteLine("Ignoring unhandled stroke tag in ISF stroke descriptor");
PresentationFramework (4)
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)
parent\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 (6)
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)
parent\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)
parent\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));