Skip to content

LiteFX::Logging::TerminationSink

Forcefully terminates the application, if a log message of a certain level or higher is output.

Synopsis

Declared in <litefx/logging.hpp>

class [[dllexport, dllimport]] TerminationSink
    : public ISink

Description

The purpose of this sink is to allow tests to catch errors during application runtime. You probably do not want to use this sink in an actual application.

Base Classes

NameDescription
ISinkInterface for a class that receives log messages.

Member Functions

NameDescription
TerminationSink [constructor]Creates a new exception sink instance.
~TerminationSink [destructor] [virtual]Destructor
operator= Assignment operators
getLevel [virtual]Gets the minimum log level for messages to get written to the log.
getName [virtual]Gets the name of the sink.
getPattern [virtual]Gets the pattern used to format the messages for the sink.

Static Data Members

NameDescription
DEFAULT_TERMINATION_STATUS The default status code used to exit the application.

Protected Member Functions

NameDescription
operator= Assignment operators
get [virtual]

Friends

NameDescription
LiteFX::Logging::TerminationSink::TerminationSinkImpl
LiteFX::PimplPtrA smart pointer that manages an implementation instance for a public interface class.