LiteFX::Logging::TerminationSink::TerminationSink¶
Creates a new exception sink instance.
Synopses¶
Declared in <litefx/logging.hpp>
Copy constructor
TerminationSink(TerminationSink const& other) = delete;
Move constructor
TerminationSink(TerminationSink&& other) noexcept = delete;
Creates a new exception sink instance.
[[dllexport, dllimport]] TerminationSink(
LogLevel const& level = LogLevel::Info,
int status = static_cast<int>(DEFAULT_TERMINATION_STATUS));
Parameters¶
| Name | Description |
|---|---|
| level | The minimum log level at which an exception is thrown. |
| status | The status code used to exit the application. |