133 references to Log
System.Private.CoreLib (133)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ActivityTracker.cs (3)
55
if (useTplSource && TplEventSource.
Log
.IsEnabled(EventLevel.Informational, TplEventSource.Keywords.TasksFlowActivityIds))
66
TplEventSource? log = useTplSource ? TplEventSource.
Log
: null;
134
TplEventSource? log = useTplSource ? TplEventSource.
Log
: null;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (2)
603
TplEventSource.
Log
?.SetActivityId(activityId);
698
TplEventSource.
Log
?.SetActivityId(activityId);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (2)
80
get => TplEventSource.
Log
.IsEnabled(EventLevel.Warning, TplEventSource.Keywords.AsyncMethod);
108
TplEventSource.
Log
.TraceOperationBegin(t.Id, "Async: " + stateMachineType.Name, 0);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (7)
231
if (TplEventSource.
Log
.IsEnabled())
270
TplEventSource.
Log
.IncompleteAsyncMethod(this);
356
bool loggingOn = TplEventSource.
Log
.IsEnabled();
359
TplEventSource.
Log
.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution);
387
TplEventSource.
Log
.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
489
if (TplEventSource.
Log
.IsEnabled())
491
TplEventSource.
Log
.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (4)
78
if (TplEventSource.
Log
.IsEnabled())
80
TplEventSource.
Log
.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Completed);
118
if (TplEventSource.
Log
.IsEnabled())
120
TplEventSource.
Log
.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (4)
180
if (TplEventSource.
Log
.IsEnabled() || Task.s_asyncDebuggingEnabled)
199
if (TplEventSource.
Log
.IsEnabled() || Task.s_asyncDebuggingEnabled)
225
TplEventSource log = TplEventSource.
Log
;
253
TplEventSource innerEtwLog = TplEventSource.
Log
;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (4)
76
if (TplEventSource.
Log
.IsEnabled())
120
if (TplEventSource.
Log
.IsEnabled())
157
TplEventSource.
Log
.AwaitTaskContinuationScheduled(TaskScheduler.Current.Id, (currentTask != null) ? currentTask.Id : 0, continuationId);
161
TplEventSource log = TplEventSource.
Log
;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (47)
930
if (TplEventSource.
Log
.IsEnabled())
934
TplEventSource.
Log
.TaskScheduled(ts.Id, currentTask == null ? 0 : currentTask.Id,
1251
if (TplEventSource.
Log
.IsEnabled())
1252
TplEventSource.
Log
.NewID(newId);
1757
if (TplEventSource.
Log
.IsEnabled() &&
1762
TplEventSource.
Log
.TraceOperationBegin(this.Id, "Task: " + action.GetMethodName(), 0);
2136
if (TplEventSource.
Log
.IsEnabled())
2137
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Error);
2152
if (TplEventSource.
Log
.IsEnabled())
2153
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled);
2161
if (TplEventSource.
Log
.IsEnabled())
2162
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
2385
TplEventSource log = TplEventSource.
Log
;
3057
TplEventSource log = TplEventSource.
Log
;
3396
if (TplEventSource.
Log
.IsEnabled())
3397
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled);
3542
TplEventSource log = TplEventSource.
Log
;
3702
if (TplEventSource.
Log
.IsEnabled())
3703
TplEventSource.
Log
.TraceSynchronousWorkEnd(CausalitySynchronousWork.CompletionNotification);
4593
TplEventSource log = TplEventSource.
Log
;
5866
if (TplEventSource.
Log
.IsEnabled())
5867
TplEventSource.
Log
.TraceOperationBegin(this.Id, "Task.Delay", 0);
5908
if (TplEventSource.
Log
.IsEnabled())
5909
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
6138
if (TplEventSource.
Log
.IsEnabled())
6140
TplEventSource.
Log
.TraceOperationBegin(Id, "Task.WhenAll", 0);
6165
if (TplEventSource.
Log
.IsEnabled())
6167
TplEventSource.
Log
.TraceOperationRelation(Id, CausalityRelation.Join);
6218
if (TplEventSource.
Log
.IsEnabled())
6220
TplEventSource.
Log
.TraceOperationEnd(Id, AsyncCausalityStatus.Completed);
6481
if (TplEventSource.
Log
.IsEnabled())
6482
TplEventSource.
Log
.TraceOperationBegin(this.Id, "Task.WhenAll", 0);
6496
if (TplEventSource.
Log
.IsEnabled())
6497
TplEventSource.
Log
.TraceOperationRelation(this.Id, CausalityRelation.Join);
6551
if (TplEventSource.
Log
.IsEnabled())
6552
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
6705
if (TplEventSource.
Log
.IsEnabled())
6707
TplEventSource.
Log
.TraceOperationBegin(this.Id, "Task.WhenAny", 0);
6740
if (TplEventSource.
Log
.IsEnabled())
6742
TplEventSource.
Log
.TraceOperationRelation(this.Id, CausalityRelation.Choice);
6743
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
7476
if (TplEventSource.
Log
.IsEnabled())
7477
TplEventSource.
Log
.TraceOperationBegin(this.Id, "Task.Unwrap", 0);
7586
if (TplEventSource.
Log
.IsEnabled())
7587
TplEventSource.
Log
.TraceOperationRelation(this.Id, CausalityRelation.Join);
7612
if (TplEventSource.
Log
.IsEnabled())
7613
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (10)
279
if (TplEventSource.
Log
.IsEnabled())
280
TplEventSource.
Log
.TraceOperationBegin(m_task.Id, "Task.ContinueWith: " + task.m_action!.GetMethodName(), 0);
314
if (TplEventSource.
Log
.IsEnabled() && !continuationTask.IsCanceled)
317
TplEventSource.
Log
.TraceOperationRelation(continuationTask.Id, CausalityRelation.AssignDelegate);
403
TplEventSource log = TplEventSource.
Log
;
421
TplEventSource log = TplEventSource.
Log
;
576
TplEventSource log = TplEventSource.
Log
;
622
TplEventSource log = TplEventSource.
Log
;
780
if (TplEventSource.
Log
.IsEnabled())
814
TplEventSource log = TplEventSource.
Log
;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (17)
1558
if (TplEventSource.
Log
.IsEnabled())
1559
TplEventSource.
Log
.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll", 0);
1567
if (TplEventSource.
Log
.IsEnabled())
1568
TplEventSource.
Log
.TraceOperationRelation(this.Id, CausalityRelation.Join);
1573
if (TplEventSource.
Log
.IsEnabled())
1574
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
1628
if (TplEventSource.
Log
.IsEnabled())
1629
TplEventSource.
Log
.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll<>", 0);
1637
if (TplEventSource.
Log
.IsEnabled())
1638
TplEventSource.
Log
.TraceOperationRelation(this.Id, CausalityRelation.Join);
1643
if (TplEventSource.
Log
.IsEnabled())
1644
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
2283
if (TplEventSource.
Log
.IsEnabled())
2284
TplEventSource.
Log
.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAny", 0);
2299
if (TplEventSource.
Log
.IsEnabled())
2301
TplEventSource.
Log
.TraceOperationRelation(this.Id, CausalityRelation.Choice);
2302
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (22)
529
if (TplEventSource.
Log
.IsEnabled())
530
TplEventSource.
Log
.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Completed);
651
if (TplEventSource.
Log
.IsEnabled())
652
TplEventSource.
Log
.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync", 0);
667
if (TplEventSource.
Log
.IsEnabled())
668
TplEventSource.
Log
.TraceOperationBegin(t.Id, "TaskFactory.FromAsync Callback", 0);
770
if (TplEventSource.
Log
.IsEnabled())
771
TplEventSource.
Log
.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
792
if (TplEventSource.
Log
.IsEnabled())
793
TplEventSource.
Log
.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
887
if (TplEventSource.
Log
.IsEnabled())
888
TplEventSource.
Log
.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
909
if (TplEventSource.
Log
.IsEnabled())
910
TplEventSource.
Log
.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
1012
if (TplEventSource.
Log
.IsEnabled())
1013
TplEventSource.
Log
.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
1034
if (TplEventSource.
Log
.IsEnabled())
1035
TplEventSource.
Log
.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
1145
if (TplEventSource.
Log
.IsEnabled())
1146
TplEventSource.
Log
.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
1167
if (TplEventSource.
Log
.IsEnabled())
1168
TplEventSource.
Log
.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (2)
187
if (TplEventSource.
Log
.IsEnabled())
228
if (TplEventSource.
Log
.IsEnabled())
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (9)
491
bool isTplEnabled = TplEventSource.
Log
.IsEnabled();
495
TplEventSource.
Log
.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution);
556
TplEventSource.
Log
.TraceOperationEnd(this.Id, ex is OperationCanceledException ? AsyncCausalityStatus.Canceled : AsyncCausalityStatus.Error);
581
TplEventSource.
Log
.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
611
TplEventSource.
Log
.TraceSynchronousWorkEnd(CausalitySynchronousWork.Execution);
728
if (TplEventSource.
Log
.IsEnabled())
730
TplEventSource.
Log
.TraceOperationBegin(result.Id, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0);
744
if (TplEventSource.
Log
.IsEnabled())
746
TplEventSource.
Log
.TraceOperationBegin(result.Id, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0);