125 references to Trace
csc (2)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
40Trace.Listeners.Clear(); 41Trace.Listeners.Add(new ExitingTraceListener(logger));
ILCompiler.ReadyToRun (1)
Compiler\PettisHansenSort\PettisHansen.cs (1)
83Trace.Assert(unioned);
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (1)
83Trace.Assert(unioned);
Microsoft.Arcade.Common (2)
ExponentialRetry.cs (2)
46Trace.TraceInformation(attempt); 59Trace.TraceInformation($"{attempt} failed. Waiting {delay} before next try.");
Microsoft.Build (21)
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
425Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message)); 495Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message)); 536Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message)); 577Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message)); 668Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log telemetry event '{1}'", _taskLocation.ToString(), eventName));
Definition\Project.cs (7)
2085Trace.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())); 2097Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1}] [PC Hash {2}]", Xml.LastDirtyReason, FullPath, ProjectCollection.GetHashCode())); 2108Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because toolsets updated [{0}] [PC Hash {1}]", FullPath, ProjectCollection.GetHashCode())); 2124Trace.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())); 3030Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Initially set global property {0} to '{1}' [{2}]", name, displayValue, FullPath)); 3035Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Changed global property {0} from '{1}' to '{2}' [{3}]", name, displayOriginalValue, displayValue, FullPath)); 3243Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Remove global property {0}", name));
Evaluation\Evaluator.cs (1)
871Trace.WriteLine(line + output + line);
Evaluation\ProjectRootElementCache.cs (1)
667Trace.WriteLine($"{prefix} {Process.GetCurrentProcess().Id} | {message}{param1}");
Instance\ProjectInstance.cs (1)
3338Trace.WriteLine($"MSBUILD: Creating a ProjectInstance from an unevaluated state [{FullPath}]");
src\msbuild\src\Shared\Tracing.cs (6)
116Trace.WriteLine("================================================"); 117Trace.WriteLine(s_slot); 120Trace.WriteLine(System.Environment.StackTrace); 135Trace.WriteLine(item.ToString()); 147Trace.WriteLine(s_currentAssemblyName); 150Trace.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Build.Framework (2)
ErrorUtilities.cs (2)
26Trace.WriteLine(message, category); 34Trace.WriteLine(handler.GetFormattedText(), category);
Microsoft.Build.Tasks.Core (6)
src\msbuild\src\Shared\Tracing.cs (6)
116Trace.WriteLine("================================================"); 117Trace.WriteLine(s_slot); 120Trace.WriteLine(System.Environment.StackTrace); 135Trace.WriteLine(item.ToString()); 147Trace.WriteLine(s_currentAssemblyName); 150Trace.WriteLine("# " + count.Key + "=" + count.Value);
Microsoft.Build.Utilities.Core (6)
src\msbuild\src\Shared\Tracing.cs (6)
116Trace.WriteLine("================================================"); 117Trace.WriteLine(s_slot); 120Trace.WriteLine(System.Environment.StackTrace); 135Trace.WriteLine(item.ToString()); 147Trace.WriteLine(s_currentAssemblyName); 150Trace.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())); 30Trace.WriteLine(string.Format("[{0}] End({1}) : [{2}ms] {3}", Environment.CurrentManagedThreadId, uniquePairId, delta, functionString));
Microsoft.Extensions.Logging.TraceSource (2)
TraceSourceScope.cs (2)
24Trace.CorrelationManager.StartLogicalOperation(state); 35Trace.CorrelationManager.StopLogicalOperation();
Microsoft.ML.Tests (1)
Transformers\CategoricalHashTests.cs (1)
172System.Diagnostics.Trace.WriteLine(slots.Items().Select(x => x.Value.ToString()).Distinct());
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\VsMsdeploy.cs (1)
206Diagnostics.Trace.WriteLine("MSDeploy TraceEvent Handler is called with " + msg);
Microsoft.TestPlatform.Build (1)
Tasks\TestTaskUtils.cs (1)
80System.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)
22Trace.Refreshing += RefreshingConfiguration; 160Trace.UseGlobalLock = traceSection.UseGlobalLock; 161Trace.AutoFlush = traceSection.AutoFlush; 162Trace.IndentSize = traceSection.IndentSize; 168Trace.Listeners.Clear(); 171Trace.Listeners.Add(listener);
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
243InternalWrite(eventCache != null ? Trace.CorrelationManager.ActivityId : Guid.Empty);
System.Diagnostics.TraceSource (21)
System\Diagnostics\TraceEventCache.cs (1)
59return Trace.CorrelationManager.LogicalOperationStack;
System\Diagnostics\TraceSource.cs (18)
207if (Trace.AutoFlush) listener.Flush(); 221if (Trace.AutoFlush) listener.Flush(); 227if (Trace.AutoFlush) listener.Flush(); 252if (Trace.AutoFlush) listener.Flush(); 266if (Trace.AutoFlush) listener.Flush(); 272if (Trace.AutoFlush) listener.Flush(); 297if (Trace.AutoFlush) listener.Flush(); 311if (Trace.AutoFlush) listener.Flush(); 317if (Trace.AutoFlush) listener.Flush(); 342if (Trace.AutoFlush) listener.Flush(); 356if (Trace.AutoFlush) listener.Flush(); 362if (Trace.AutoFlush) listener.Flush(); 387if (Trace.AutoFlush) listener.Flush(); 401if (Trace.AutoFlush) listener.Flush(); 407if (Trace.AutoFlush) listener.Flush(); 448if (Trace.AutoFlush) 466if (Trace.AutoFlush) 475if (Trace.AutoFlush)
System\Diagnostics\TraceSwitch.cs (2)
84Trace.WriteLine(SR.Format(SR.TraceSwitchLevelTooLow, DisplayName)); 89Trace.WriteLine(SR.Format(SR.TraceSwitchLevelTooHigh, DisplayName));
System.Private.Windows.Core.TestUtilities (11)
ModuleInitializer.cs (2)
14Trace.Listeners.Clear(); 15Trace.Listeners.Add(ThrowingTraceListener.Instance);
NoAssertContext.cs (9)
34private static readonly TraceListener? s_defaultListener = Trace.Listeners["Default"]; 52Trace.Listeners.Add(s_noAssertListener); 53if (s_defaultListener is not null && Trace.Listeners.Contains(s_defaultListener)) 56Trace.Listeners.Remove(s_defaultListener); 59if (Trace.Listeners.OfType<ThrowingTraceListener>().FirstOrDefault() is { } throwingTraceListener) 62Trace.Listeners.Remove(throwingTraceListener); 94Trace.Listeners.Add(s_defaultListener!); 99Trace.Listeners.Add(ThrowingTraceListener.Instance); 102Trace.Listeners.Remove(s_noAssertListener);
System.ServiceModel.Primitives (8)
Internals\System\Runtime\ActionItem.cs (6)
240previous = Trace.CorrelationManager.ActivityId; 242Trace.CorrelationManager.ActivityId = _eventTraceActivity.ActivityId; 255Trace.CorrelationManager.ActivityId = previous; 284previous = Trace.CorrelationManager.ActivityId; 286Trace.CorrelationManager.ActivityId = _eventTraceActivity.ActivityId; 299Trace.CorrelationManager.ActivityId = previous;
Internals\System\Runtime\Diagnostics\EventTraceActivity.cs (2)
51Guid guid = Trace.CorrelationManager.ActivityId; 59Trace.CorrelationManager.ActivityId = Guid.Empty;
System.Speech (8)
Internal\SrgsCompiler\Graph.cs (2)
109System.Diagnostics.Trace.WriteLine("Grammar compiler, additional Epsilons could have been removed :" + (cStates - Count).ToString(CultureInfo.InvariantCulture)); 123System.Diagnostics.Trace.WriteLine("Grammar compiler, additional Epsilons could have been removed post merge transition :" + (cStates - Count).ToString(CultureInfo.InvariantCulture));
Internal\Synthesis\EngineSite.cs (3)
411Trace.TraceError("Cannot convert the phonemes correctly. Attempt to start over..."); 448Trace.TraceError("Failed to convert phonemes. Phoneme queue is empty."); 510Trace.TraceError("First event in the queue of the phone mapper is not a PHONEME event");
Recognition\RecognizerBase.cs (2)
480Trace.TraceInformation("SAPI does not implement phonetic alphabet selection."); 485Trace.TraceError("Cannot force SAPI to set the alphabet to UPS");
Result\RecognitionResult.cs (1)
235Trace.TraceError("Cannot convert the pronunciation to IPA alphabet.");
testhost (5)
src\vstest\src\testhost.x86\TestHostTraceListener.cs (5)
23for (var i = 0; i < Trace.Listeners.Count; i++) 25var listener = Trace.Listeners[i]; 28EqtTrace.Verbose($"TestPlatformTraceListener.Setup: Replacing listener {Trace.Listeners[i]} with {nameof(TestHostTraceListener)}."); 29Trace.Listeners[i] = new TestHostTraceListener(); 57if (!debugMethodFound && (declaringType == typeof(Debug) || declaringType == typeof(Trace)))
testhost.arm64 (5)
src\vstest\src\testhost.x86\TestHostTraceListener.cs (5)
23for (var i = 0; i < Trace.Listeners.Count; i++) 25var listener = Trace.Listeners[i]; 28EqtTrace.Verbose($"TestPlatformTraceListener.Setup: Replacing listener {Trace.Listeners[i]} with {nameof(TestHostTraceListener)}."); 29Trace.Listeners[i] = new TestHostTraceListener(); 57if (!debugMethodFound && (declaringType == typeof(Debug) || declaringType == typeof(Trace)))
testhost.x86 (5)
TestHostTraceListener.cs (5)
23for (var i = 0; i < Trace.Listeners.Count; i++) 25var listener = Trace.Listeners[i]; 28EqtTrace.Verbose($"TestPlatformTraceListener.Setup: Replacing listener {Trace.Listeners[i]} with {nameof(TestHostTraceListener)}."); 29Trace.Listeners[i] = new TestHostTraceListener(); 57if (!debugMethodFound && (declaringType == typeof(Debug) || declaringType == typeof(Trace)))
vbc (2)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
40Trace.Listeners.Clear(); 41Trace.Listeners.Add(new ExitingTraceListener(logger));
VBCSCompiler (2)
src\roslyn\src\Compilers\Shared\ExitingTraceListener.cs (2)
40Trace.Listeners.Clear(); 41Trace.Listeners.Add(new ExitingTraceListener(logger));