|
Senzing C++ SDK
C++ SDK for Senzing v4, patterned after the official C# SDK
|
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. | |
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.
|
inlinenoexcept |
|
inlinenodiscard |
Unregisters, then returns everything captured.
A second call returns an empty vector.