125 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)
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));
Definition\Project.cs (7)
2085
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()));
2097
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1}] [PC Hash {2}]", Xml.LastDirtyReason, FullPath, ProjectCollection.GetHashCode()));
2108
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because toolsets updated [{0}] [PC Hash {1}]", FullPath, ProjectCollection.GetHashCode()));
2124
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()));
3030
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Initially set global property {0} to '{1}' [{2}]", name, displayValue, FullPath));
3035
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Changed global property {0} from '{1}' to '{2}' [{3}]", name, displayOriginalValue, displayValue, FullPath));
3243
Trace
.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Remove global property {0}", name));
Evaluation\Evaluator.cs (1)
871
Trace
.WriteLine(line + output + line);
Evaluation\ProjectRootElementCache.cs (1)
667
Trace
.WriteLine($"{prefix} {Process.GetCurrentProcess().Id} | {message}{param1}");
Instance\ProjectInstance.cs (1)
3338
Trace
.WriteLine($"MSBUILD: Creating a ProjectInstance from an unevaluated state [{FullPath}]");
src\msbuild\src\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 (2)
ErrorUtilities.cs (2)
26
Trace
.WriteLine(message, category);
34
Trace
.WriteLine(handler.GetFormattedText(), category);
Microsoft.Build.Tasks.Core (6)
src\msbuild\src\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)
src\msbuild\src\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\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
))]
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));