9#ifndef SENZING_SDK_CORE_SZCORELOGGING_HPP
10#define SENZING_SDK_CORE_SZCORELOGGING_HPP
31 [[nodiscard]] std::unique_ptr<SzLogRegistration>
Registration parameters: the callback's minimum level and the format native applies to SzLogRecord::M...
Definition SzLogging.hpp:377
Destination of native's default output.
Definition SzLogging.hpp:306
Senzing native logging (libSzLogging).
Definition SzLogging.hpp:657
SzCoreLogging(const SzCoreLogging &)=delete
SzLogLevel GetEffectiveLogLevel() override
The effective level (SzLogging_getLogLevel): the minimum over the default output and every registered...
void SetDefaultLogLevel(SzLogLevel level) override
Sets the default output's level (SzLogging_setLogLevel).
void SetDefaultFormat(SzLogFormat format) override
Sets the default output's format (SzLogging_setDefaultFormatter).
std::unique_ptr< SzLogRegistration > RegisterCallback(const SzLogCallbackOptions &options, SzLogCallback callback) override
Registers callback for messages from every thread (SzLogging_registerCallbackWithFormat).
SzLogFormat GetDefaultFormat() override
The default output's format (SzLogging_getDefaultFormatter).
void SetDefaultCallback(const SzLogCallbackOptions &options, SzLogCallback callback) override
Makes callback the default output, at options.MinLevel() and in options.Format() (SzLogging_setDefaul...
SzLogOutput GetDefaultOutput() override
The current default output (SzLogging_getDefaultOutput).
static SzCoreLogging & GetInstance()
The process-wide instance (logging is process-global native state).
SzCoreLogging & operator=(const SzCoreLogging &)=delete
void SetDefaultOutput(const SzLogOutput &output) override
Sets the default output (SzLogging_setDefaultOutput).
SzLogLevel GetDefaultLogLevel() override
The default output's level, exactly what SetDefaultLogLevel set (SzLogging_getDefaultLogLevel).
std::unique_ptr< SzLogRegistration > RegisterThreadLocalCallback(const SzLogCallbackOptions &options, SzLogCallback callback) override
Registers callback for messages logged on the CALLING OS THREAD only.
Definition SzCoreConfig.hpp:20
std::function< void(const SzLogRecord &)> SzLogCallback
A log callback.
Definition SzLogging.hpp:553
SzLogLevel
Log severity.
Definition SzLogging.hpp:141
SzLogFormat
Message format, applied by native (SZ_LOG_FORMAT_*).
Definition SzLogging.hpp:163