|
Senzing C++ SDK
C++ SDK for Senzing v4, patterned after the official C# SDK
|
Registration parameters: the callback's minimum level and the format native applies to SzLogRecord::Message(). More...
#include <SzLogging.hpp>
Public Member Functions | |
| constexpr | SzLogCallbackOptions (SzLogLevel minLevel) noexcept |
| Options with minLevel and the Bare format. | |
| constexpr | SzLogCallbackOptions (SzLogLevel minLevel, SzLogFormat format) noexcept |
| Options with minLevel and format. | |
| constexpr SzLogCallbackOptions | WithFormat (SzLogFormat format) const noexcept |
| Returns a copy of these options with format instead. | |
| constexpr SzLogLevel | MinLevel () const noexcept |
| Minimum level delivered to the callback. | |
| constexpr SzLogFormat | Format () const noexcept |
| Format native applies to the message. | |
| constexpr bool | operator== (const SzLogCallbackOptions &other) const =default |
Registration parameters: the callback's minimum level and the format native applies to SzLogRecord::Message().
Implicitly constructible from an SzLogLevel, so logging.RegisterCallback(SzLogLevel::Info, ...) works. The default format is Bare: the record already carries the level and module, so the message needs no prefix (Legacy would stamp them a second time when the record is forwarded). Use WithFormat() to pick another.
|
inlineconstexprnoexcept |
Options with minLevel and the Bare format.
|
inlineconstexprnoexcept |
Options with minLevel and format.
|
inlinenodiscardconstexprnoexcept |
Format native applies to the message.
|
inlinenodiscardconstexprnoexcept |
Minimum level delivered to the callback.
|
constexprdefault |
|
inlinenodiscardconstexprnoexcept |
Returns a copy of these options with format instead.