|
Senzing C++ SDK
C++ SDK for Senzing v4, patterned after the official C# SDK
|
#include <algorithm>#include <array>#include <chrono>#include <cstdint>#include <filesystem>#include <functional>#include <memory>#include <mutex>#include <optional>#include <ostream>#include <string>#include <string_view>#include <utility>#include <vector>#include "senzing/sdk/SzException.hpp"

Go to the source code of this file.
Classes | |
| class | senzing::sdk::SzLogOutput |
| Destination of native's default output. More... | |
| class | senzing::sdk::SzLogCallbackOptions |
| Registration parameters: the callback's minimum level and the format native applies to SzLogRecord::Message(). More... | |
| struct | senzing::sdk::SzLogEntry |
| An owned copy of an SzLogRecord, for queues and buffers. More... | |
| class | senzing::sdk::SzLogRecord |
| One log message, borrowed from native for the duration of a callback. More... | |
| class | senzing::sdk::SzLogRegistration |
| A live native callback registration, owned through std::unique_ptr (so it is move-only). More... | |
| class | senzing::sdk::SzLogCapture |
| Collects the records logged on the thread that created it until Finish(). More... | |
| struct | senzing::sdk::SzLogCapture::Buffer |
| The buffer shared between the capture and its callback. More... | |
| class | senzing::sdk::SzLogging |
| Senzing native logging (libSzLogging). More... | |
Namespaces | |
| namespace | senzing |
| namespace | senzing::sdk |
| namespace | senzing::sdk::detail |
Typedefs | |
| using | senzing::sdk::SzLogCallback = std::function<void(const SzLogRecord&)> |
| A log callback. | |
Enumerations | |
| enum class | senzing::sdk::SzLogLevel : int32_t { senzing::sdk::Trace = 0 , senzing::sdk::Debug = 1 , senzing::sdk::Info = 2 , senzing::sdk::Warn = 3 , senzing::sdk::Error = 4 , senzing::sdk::Critical = 5 , senzing::sdk::Off = 6 } |
| Log severity. More... | |
| enum class | senzing::sdk::SzLogFormat : int32_t { senzing::sdk::Legacy = 0 , senzing::sdk::Jsonl = 1 , senzing::sdk::Bare = 2 , senzing::sdk::Default = 3 } |
| Message format, applied by native (SZ_LOG_FORMAT_*). More... | |
| enum class | senzing::sdk::SzLogOutputType : int32_t { senzing::sdk::Stderr = 0 , senzing::sdk::Stdout = 1 , senzing::sdk::File = 2 , senzing::sdk::Null = 3 , senzing::sdk::Callback = 4 } |
| The kind of destination of native's default output (SZ_LOG_OUTPUT_*). More... | |
Functions | |
| constexpr std::string_view | senzing::sdk::ToString (SzLogLevel level) noexcept |
| The canonical upper-case name: "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "CRITICAL" or "OFF" ("UNKNOWN" for a value outside the enum). | |
| constexpr std::string_view | senzing::sdk::ToString (SzLogFormat format) noexcept |
| The canonical upper-case name: "LEGACY", "JSONL", "BARE" or "DEFAULT" ("UNKNOWN" for a value outside the enum). | |
| std::ostream & | senzing::sdk::operator<< (std::ostream &os, SzLogLevel level) |
| Writes ToString(level). | |
| std::ostream & | senzing::sdk::operator<< (std::ostream &os, SzLogFormat format) |
| Writes ToString(format). | |
| std::string | senzing::sdk::detail::NormalizeLogName (std::string_view text) |
| Upper-cases ASCII letters and strips surrounding whitespace. | |
| SzLogLevel | senzing::sdk::ParseSzLogLevel (std::string_view text) |
| Parses a level name. | |
| SzLogFormat | senzing::sdk::ParseSzLogFormat (std::string_view text) |
| Parses a format name. | |
| std::ostream & | senzing::sdk::operator<< (std::ostream &os, const SzLogEntry &entry) |
| Writes entry.Message (the message as native formatted it). | |
| std::ostream & | senzing::sdk::operator<< (std::ostream &os, const SzLogRecord &record) |
| Writes record.Message() (the message as native formatted it). | |
Variables | |
| constexpr std::array< SzLogLevel, 7 > | senzing::sdk::SzLogLevels |
| All levels, most verbose first. | |
| constexpr std::array< SzLogFormat, 4 > | senzing::sdk::SzLogFormats |
| All formats. | |