Ask About HttpContext.Trace and TraceContext
Clounea opened this issue · 0 comments
Clounea commented
Summary
HttpContext.Trace and TraceContext are missing in .NetCore. I want to ask if there are equivalents and if there is plan to add them to adapter.
Motivation and goals
We need migrate code (an API in Sharepoint) to ASP.NetCore and we find that the APIs are not supported by ASP.NetCore.
In scope
HttpContext.Trace
TraceContext.IsEnabled
TraceContext.Warn
TraceContext.Write
Examples
// in developer page code, a controller enable trace
context.Trace.IsEnabled = true
// in log code
if (Context != null && Context.Trace.IsEnabled)
{
if (level >= LogLevel.Warn)
Context.Trace.Warn(category, message);
else
Context.Trace.Write(category, message);
}