Senzing C++ SDK
C++ SDK for Senzing v4, patterned after the official C# SDK
Loading...
Searching...
No Matches
senzing::sdk::SzLogCapture Class Reference

Collects the records logged on the thread that created it until Finish(). More...

#include <SzLogging.hpp>

Classes

struct  Buffer
 The buffer shared between the capture and its callback. More...

Public Member Functions

 SzLogCapture (std::unique_ptr< SzLogRegistration > registration, std::shared_ptr< Buffer > buffer) noexcept
std::vector< SzLogEntry > Finish ()
 Unregisters, then returns everything captured.

Detailed Description

Collects the records logged on the thread that created it until Finish().

Created by SzLogging::CaptureThreadLogs, which needs Senzing >= 4.5.1 / 4.6.0 (thread-local delivery, GDEV-4960). It is one thread-local registration whose callback owns the buffer; work the engine does on its own threads is not captured. Destroying it without Finish() ends the capture.

Constructor & Destructor Documentation

◆ SzLogCapture()

senzing::sdk::SzLogCapture::SzLogCapture ( std::unique_ptr< SzLogRegistration > registration,
std::shared_ptr< Buffer > buffer )
inlinenoexcept

Member Function Documentation

◆ Finish()

std::vector< SzLogEntry > senzing::sdk::SzLogCapture::Finish ( )
inlinenodiscard

Unregisters, then returns everything captured.

A second call returns an empty vector.


The documentation for this class was generated from the following file: