Interface IInstrumentsSink
Per-run-loop instrumentation sink that receives fully-formatted messages. Thread-aligned — must not be shared across run loops or threads.
public interface IInstrumentsSink : IDisposable
- Inherited Members
Methods
BeginTrace(Scope, LevelOfDetail, ReadOnlySpan<char>)
Begins a named trace scope. Must be paired with EndTrace().
void BeginTrace(Scope scope, LevelOfDetail lod, ReadOnlySpan<char> message)
Parameters
scopeScopelodLevelOfDetailmessageReadOnlySpan<char>
EndTrace()
Ends the most recently opened trace scope.
void EndTrace()
IsEnabled(Scope, LevelOfDetail)
Returns true if this sink should receive events at the given scope and level of detail.
bool IsEnabled(Scope scope, LevelOfDetail lod)
Parameters
scopeScopelodLevelOfDetail
Returns
Log(Scope, LevelOfDetail, ReadOnlySpan<char>)
Writes a single log message to the sink.
void Log(Scope scope, LevelOfDetail lod, ReadOnlySpan<char> message)
Parameters
scopeScopelodLevelOfDetailmessageReadOnlySpan<char>