15.3.10. StdoutErrConsumer

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

Public Functions

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.

Log::Kind stderr_threshold() const

Retrieve the stderr_threshold.

Return

The Log::Kind to which stderr_threshold is set.

Public Static Attributes

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

Default value of stderr_threshold.