|
Senzing C++ SDK
C++ SDK for Senzing v4, patterned after the official C# SDK
|
Destination of native's default output. More...
#include <SzLogging.hpp>
Public Member Functions | |
| SzLogOutput ()=default | |
| Standard error (the native default). | |
| SzLogOutputType | OutputType () const noexcept |
| The kind of destination. | |
| const std::filesystem::path & | Path () const noexcept |
| The file path (empty unless OutputType() is File). | |
| bool | IsAppend () const noexcept |
| True for a file output that keeps existing content. | |
| bool | operator== (const SzLogOutput &other) const =default |
Static Public Member Functions | |
| static SzLogOutput | Stderr () |
| Standard error (the native default). | |
| static SzLogOutput | Stdout () |
| Standard output. | |
| static SzLogOutput | Null () |
| Discard; only registered callbacks receive messages. | |
| static SzLogOutput | Callback () |
| A default callback (get-only: SetDefaultOutput rejects it). | |
| static SzLogOutput | File (std::filesystem::path filePath) |
| A file output that truncates the file when it is opened (SZ_LOG_OUTPUT_FILE). | |
| static SzLogOutput | AppendFile (std::filesystem::path filePath) |
| A file output that appends to the file, keeping what is already there (SZ_LOG_OUTPUT_FILE_APPEND). | |
Destination of native's default output.
A default-constructed value is Stderr. Build one with the static factories.
|
default |
Standard error (the native default).
|
inlinestaticnodiscard |
A file output that appends to the file, keeping what is already there (SZ_LOG_OUTPUT_FILE_APPEND).
Setting it requires Senzing >= 4.5.1/4.6.0.
|
inlinestaticnodiscard |
A default callback (get-only: SetDefaultOutput rejects it).
|
inlinestaticnodiscard |
A file output that truncates the file when it is opened (SZ_LOG_OUTPUT_FILE).
|
inlinenodiscardnoexcept |
True for a file output that keeps existing content.
|
inlinestaticnodiscard |
Discard; only registered callbacks receive messages.
|
default |
|
inlinenodiscardnoexcept |
The kind of destination.
|
inlinenodiscardnoexcept |
The file path (empty unless OutputType() is File).
|
inlinestaticnodiscard |
Standard error (the native default).
|
inlinestaticnodiscard |
Standard output.