Class StdoutErrConsumer

Inheritance Relationships

Base Type

Class Documentation

class StdoutErrConsumer : public eprosima::fastdds::dds::OStreamConsumer

Public Functions

virtual ~StdoutErrConsumer() = default
virtual RTPS_DllAPI void stderr_threshold (const Log::Kind &kind)

Set the stderr_threshold to a Log::Kind. This threshold decides which log messages are output on STDOUT, and which are output to STDERR. Log messages with a Log::Kind equal to or more severe than the stderr_threshold are output to STDERR using std::cerr. Log messages with a Log::Kind less severe than the stderr_threshold are output to STDOUT using std::cout.

Parameters

kind – The Log::Kind to which stderr_threshold is set.

virtual RTPS_DllAPI Log::Kind stderr_threshold () const

Retrieve the stderr_threshold.

Returns

The Log::Kind to which stderr_threshold is set.

Public Static Attributes

static constexpr Log::Kind STDERR_THRESHOLD_DEFAULT = Log::Kind::Warning

Default value of stderr_threshold.

Protected Functions

virtual RTPS_DllAPI std::ostream & get_stream (const Log::Entry &entry) override