Death::ITraceSink class

Interface for sink to be used by logger writing to it.

The sink needs to be registered using Trace::AttachSink() and unregistered using Trace::DetachSink(). Then all registered sinks are automatically used by LOGD/LOGI/LOGW/LOGE calls and asserts. See also Asserts.h for more details.

Derived classes

class nCine::Application
Base class for main entry points of nCine applications.

Constructors, destructors, conversion operators

ITraceSink()
~ITraceSink() virtual
ITraceSink(ITraceSink const&) deleted

Public functions

auto operator=(ITraceSink const&) -> ITraceSink& deleted

Protected functions

void OnTraceReceived(TraceLevel level, std::uint64_t timestamp, Containers::StringView threadId, Containers::StringView message) pure virtual
Called when new trace item is received and should be written to the sink destination.
void OnTraceFlushed() pure virtual
Called when all sink buffers should be flushed immediately.