template<int Level>
class jevois::Log< Level >
Logger class.
Users would typically not use this class directly but instead invoke one of the LDEBUG(msg), LINFO(msg), etc macros. Note that by default logging is asynchronous, i.e., when issuing a log message it is assembled and then pushed into a queue, and another thread then pops it back from the queue and displays it. Define JEVOIS_USE_SYNC_LOG at compile time to have the mesage displayed immediately but beware that this can break USB strict timing requirements.
Definition at line 55 of file Log.H.
|
| Log (char const *fullFileName, char const *functionName, std::string *outstr=nullptr) |
| Construct a new Log, adding a prefix to the log stream.
|
|
| ~Log () |
| Close the Log, outputting the aggregated message.
|
|
template<class T > |
Log< Level > & | operator<< (T const &out_item) |
| Overloaded stream input operator for any type that has operator<< defined for ostream.
|
|
Log< Level > & | operator<< (uint8_t const &out_item) |
| Overload of operator<< for uint8 (displays it as an int rather than char)
|
|
Log< Level > & | operator<< (int8_t const &out_item) |
| Overload of operator<< for int8 (displays it as an int rather than char)
|
|
| Log (char const *, char const *, std::string *outstr) |
|