124 references to Log
System.Private.CoreLib (124)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (3)
55if (useTplSource && TplEventSource.Log.IsEnabled(EventLevel.Informational, TplEventSource.Keywords.TasksFlowActivityIds)) 66TplEventSource? log = useTplSource ? TplEventSource.Log : null; 134TplEventSource? log = useTplSource ? TplEventSource.Log : null;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
614TplEventSource.Log?.SetActivityId(activityId); 709TplEventSource.Log?.SetActivityId(activityId);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (2)
80get => TplEventSource.Log.IsEnabled(EventLevel.Warning, TplEventSource.Keywords.AsyncMethod); 108TplEventSource.Log.TraceOperationBegin(t.Id, "Async: " + stateMachineType.Name, 0);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (7)
231if (TplEventSource.Log.IsEnabled()) 270TplEventSource.Log.IncompleteAsyncMethod(this); 356bool loggingOn = TplEventSource.Log.IsEnabled(); 359TplEventSource.Log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution); 387TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution); 489if (TplEventSource.Log.IsEnabled()) 491TplEventSource.Log.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (4)
78if (TplEventSource.Log.IsEnabled()) 80TplEventSource.Log.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Completed); 118if (TplEventSource.Log.IsEnabled()) 120TplEventSource.Log.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (4)
180if (TplEventSource.Log.IsEnabled() || Task.s_asyncDebuggingEnabled) 199if (TplEventSource.Log.IsEnabled() || Task.s_asyncDebuggingEnabled) 225TplEventSource log = TplEventSource.Log; 253TplEventSource innerEtwLog = TplEventSource.Log;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (4)
76if (TplEventSource.Log.IsEnabled()) 120if (TplEventSource.Log.IsEnabled()) 157TplEventSource.Log.AwaitTaskContinuationScheduled(TaskScheduler.Current.Id, (currentTask != null) ? currentTask.Id : 0, continuationId); 161TplEventSource log = TplEventSource.Log;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\FutureFactory.cs (22)
528if (TplEventSource.Log.IsEnabled()) 529TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Completed); 650if (TplEventSource.Log.IsEnabled()) 651TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync", 0); 666if (TplEventSource.Log.IsEnabled()) 667TplEventSource.Log.TraceOperationBegin(t.Id, "TaskFactory.FromAsync Callback", 0); 767if (TplEventSource.Log.IsEnabled()) 768TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 789if (TplEventSource.Log.IsEnabled()) 790TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 884if (TplEventSource.Log.IsEnabled()) 885TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 906if (TplEventSource.Log.IsEnabled()) 907TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 1009if (TplEventSource.Log.IsEnabled()) 1010TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 1031if (TplEventSource.Log.IsEnabled()) 1032TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 1142if (TplEventSource.Log.IsEnabled()) 1143TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 1164if (TplEventSource.Log.IsEnabled()) 1165TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (47)
853if (TplEventSource.Log.IsEnabled()) 857TplEventSource.Log.TaskScheduled(ts.Id, currentTask == null ? 0 : currentTask.Id, 1174if (TplEventSource.Log.IsEnabled()) 1175TplEventSource.Log.NewID(newId); 1680if (TplEventSource.Log.IsEnabled() && (Options & (TaskCreationOptions)InternalTaskOptions.ContinuationTask) == 0) 1684TplEventSource.Log.TraceOperationBegin(this.Id, "Task: " + m_action.GetMethodName(), 0); 2058if (TplEventSource.Log.IsEnabled()) 2059TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Error); 2074if (TplEventSource.Log.IsEnabled()) 2075TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled); 2083if (TplEventSource.Log.IsEnabled()) 2084TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 2307TplEventSource log = TplEventSource.Log; 2982TplEventSource log = TplEventSource.Log; 3312if (TplEventSource.Log.IsEnabled()) 3313TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled); 3458TplEventSource log = TplEventSource.Log; 3618if (TplEventSource.Log.IsEnabled()) 3619TplEventSource.Log.TraceSynchronousWorkEnd(CausalitySynchronousWork.CompletionNotification); 4509TplEventSource log = TplEventSource.Log; 5800if (TplEventSource.Log.IsEnabled()) 5801TplEventSource.Log.TraceOperationBegin(this.Id, "Task.Delay", 0); 5842if (TplEventSource.Log.IsEnabled()) 5843TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 6055if (TplEventSource.Log.IsEnabled()) 6057TplEventSource.Log.TraceOperationBegin(Id, "Task.WhenAll", 0); 6082if (TplEventSource.Log.IsEnabled()) 6084TplEventSource.Log.TraceOperationRelation(Id, CausalityRelation.Join); 6135if (TplEventSource.Log.IsEnabled()) 6137TplEventSource.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Completed); 6398if (TplEventSource.Log.IsEnabled()) 6399TplEventSource.Log.TraceOperationBegin(this.Id, "Task.WhenAll", 0); 6413if (TplEventSource.Log.IsEnabled()) 6414TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 6468if (TplEventSource.Log.IsEnabled()) 6469TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 6622if (TplEventSource.Log.IsEnabled()) 6624TplEventSource.Log.TraceOperationBegin(this.Id, "Task.WhenAny", 0); 6657if (TplEventSource.Log.IsEnabled()) 6659TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice); 6660TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 7393if (TplEventSource.Log.IsEnabled()) 7394TplEventSource.Log.TraceOperationBegin(this.Id, "Task.Unwrap", 0); 7503if (TplEventSource.Log.IsEnabled()) 7504TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 7529if (TplEventSource.Log.IsEnabled()) 7530TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (10)
279if (TplEventSource.Log.IsEnabled()) 280TplEventSource.Log.TraceOperationBegin(m_task.Id, "Task.ContinueWith: " + task.m_action!.GetMethodName(), 0); 314if (TplEventSource.Log.IsEnabled() && !continuationTask.IsCanceled) 317TplEventSource.Log.TraceOperationRelation(continuationTask.Id, CausalityRelation.AssignDelegate); 403TplEventSource log = TplEventSource.Log; 421TplEventSource log = TplEventSource.Log; 576TplEventSource log = TplEventSource.Log; 622TplEventSource log = TplEventSource.Log; 780if (TplEventSource.Log.IsEnabled()) 814TplEventSource log = TplEventSource.Log;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (17)
1558if (TplEventSource.Log.IsEnabled()) 1559TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll", 0); 1567if (TplEventSource.Log.IsEnabled()) 1568TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 1573if (TplEventSource.Log.IsEnabled()) 1574TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 1628if (TplEventSource.Log.IsEnabled()) 1629TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll<>", 0); 1637if (TplEventSource.Log.IsEnabled()) 1638TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 1643if (TplEventSource.Log.IsEnabled()) 1644TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 2283if (TplEventSource.Log.IsEnabled()) 2284TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAny", 0); 2299if (TplEventSource.Log.IsEnabled()) 2301TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice); 2302TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
187if (TplEventSource.Log.IsEnabled()) 228if (TplEventSource.Log.IsEnabled())