modm API documentation
modm::log::Prefix< T, STYLE > Class Template Reference

Add a prefix to the log message. More...

#include <modm/debug/logger/style/prefix.hpp>

Inheritance diagram for modm::log::Prefix< T, STYLE >:
modm::log::Style< STYLE >

Public Member Functions

 Prefix (const T &str, STYLE style)
 
 Prefix (const T &str, IODevice &device)
 
void write (char c)
 Write one char to the sink.
 
void write (const char *s)
 Write a string that terminates with '\0' to the sink.
 
void flush ()
 The message is complete and can be written/send/displayed.
 
- Public Member Functions inherited from modm::log::Style< STYLE >
 Style (STYLE style)
 
 Style (IODevice &device)
 
void parseArg (int argc, char *argv)
 parse arguments that are given with the start of the program
 
void write (char c)
 Write one char to the sink.
 
void write (const char *s)
 Write a string that terminates with '\0' to the sink.
 
void flush ()
 The message is complete and can be written/send/displayed.
 

Additional Inherited Members

- Public Typedefs inherited from modm::log::Style< STYLE >
typedef STYLE Type
 

Detailed Description

template<typename T, typename STYLE = DefaultStyle>
class modm::log::Prefix< T, STYLE >

Add a prefix to the log message.

modm::log::Prefix< char[9] > ( "Prefix: ", loggerDevice ) );
modm::log::Logger loggerPrefix( loggerDevicePrefix );
Author
Martin Rosekeit martin.rosekeit@rwth-aachen.de

The documentation for this class was generated from the following file: