Table of Contents

Interface IInstrumentsSink

Namespace
Xui.Core.Debug
Assembly
Xui.Core.dll

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

scope Scope
lod LevelOfDetail
message ReadOnlySpan<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

scope Scope
lod LevelOfDetail

Returns

bool

Log(Scope, LevelOfDetail, ReadOnlySpan<char>)

Writes a single log message to the sink.

void Log(Scope scope, LevelOfDetail lod, ReadOnlySpan<char> message)

Parameters

scope Scope
lod LevelOfDetail
message ReadOnlySpan<char>