#include <StdoutErrConsumer.hpp>
Public Member Functions | |
| virtual | ~StdoutErrConsumer ()=default |
| virtual FASTDDS_EXPORTED_API void | stderr_threshold (const Log::Kind &kind) |
| Set the stderr_threshold to a Log::Kind. | |
| virtual FASTDDS_EXPORTED_API Log::Kind | stderr_threshold () const |
| Retrieve the stderr_threshold. | |
| Public Member Functions inherited from OStreamConsumer | |
| virtual | ~OStreamConsumer ()=default |
| FASTDDS_EXPORTED_API void | Consume (const Log::Entry &entry) override |
| Public Member Functions inherited from LogConsumer | |
| virtual | ~LogConsumer ()=default |
Static Public Attributes | |
| static constexpr Log::Kind | STDERR_THRESHOLD_DEFAULT = Log::Kind::Warning |
| Default value of stderr_threshold. | |
Protected Member Functions | |
| virtual FASTDDS_EXPORTED_API std::ostream & | get_stream (const Log::Entry &entry) override |
| Protected Member Functions inherited from LogConsumer | |
| FASTDDS_EXPORTED_API void | print_timestamp (std::ostream &stream, const Log::Entry &, bool color) const |
| FASTDDS_EXPORTED_API void | print_header (std::ostream &stream, const Log::Entry &, bool color) const |
| FASTDDS_EXPORTED_API void | print_context (std::ostream &stream, const Log::Entry &, bool color) const |
| FASTDDS_EXPORTED_API void | print_message (std::ostream &stream, const Log::Entry &, bool color) const |
| FASTDDS_EXPORTED_API void | print_new_line (std::ostream &stream, bool color) const |
|
virtualdefault |
|
overrideprotectedvirtual |
Implements OStreamConsumer.
|
virtual |
Retrieve the stderr_threshold.
|
virtual |
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.
| kind | The Log::Kind to which stderr_threshold is set. |
|
staticconstexpr |
Default value of stderr_threshold.