#include <FileConsumer.hpp>
Public Member Functions | |
FASTDDS_EXPORTED_API | FileConsumer () |
Default constructor: filename = "output.log", append = false. | |
FASTDDS_EXPORTED_API | FileConsumer (const std::string &filename, bool append=false) |
Constructor with parameters. | |
virtual | ~FileConsumer () |
![]() | |
virtual | ~OStreamConsumer ()=default |
FASTDDS_EXPORTED_API void | Consume (const Log::Entry &entry) override |
![]() | |
virtual | ~LogConsumer ()=default |
Additional Inherited Members | |
![]() | |
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 |
FASTDDS_EXPORTED_API FileConsumer | ( | ) |
Default constructor: filename = "output.log", append = false.
FASTDDS_EXPORTED_API FileConsumer | ( | const std::string & | filename, |
bool | append = false |
||
) |
Constructor with parameters.
filename | path of the output file where the log will be wrote. |
append | indicates if the consumer must append the content in the filename. |
|
virtual |