#include <FileConsumer.hpp>
Public Member Functions | |
| FASTDDS_EXPORTED_API | FileConsumer () |
| Default constructor: filename = "output.log", append = false. More... | |
| FASTDDS_EXPORTED_API | FileConsumer (const std::string &filename, bool append=false) |
| Constructor with parameters. More... | |
| virtual | ~FileConsumer () |
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 |
| virtual void | Consume (const Log::Entry &)=0 |
Additional Inherited Members | |
| virtual FASTDDS_EXPORTED_API std::ostream & | get_stream (const Log::Entry &entry)=0 |
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 |
| 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 |