18.4.10. StdoutErrConsumer

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

Public Functions

virtual 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 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.