1 #ifndef logger_logStdFormat_hpp 2 #define logger_logStdFormat_hpp 17 return flatlogs::stdFormat<git_state>(buffer);
19 return flatlogs::stdFormat<text_log>(buffer);
21 return flatlogs::stdFormat<user_log>(buffer);
23 return flatlogs::stdFormat<state_change>(buffer);
25 return flatlogs::stdFormat<software_log>(buffer);
27 return flatlogs::stdFormat<indidriver_start>(buffer);
29 return flatlogs::stdFormat<indidriver_stop>(buffer);
31 return flatlogs::stdFormat<loop_closed>(buffer);
33 return flatlogs::stdFormat<loop_paused>(buffer);
35 return flatlogs::stdFormat<loop_open>(buffer);
37 return flatlogs::stdFormat<pdu_outlet_state>(buffer);
39 return flatlogs::stdFormat<fxngen_params>(buffer);
41 std::cerr <<
"Unknown log type: " << ec <<
"\n";
static int eventCode(bufferPtrT &logBuffer, const eventCodeT &ec)
Set the event code of a log entry.
void logStdFormat(flatlogs::bufferPtrT &buffer)
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
Flatlogs single include file.
uint16_t eventCodeT
The type of an event code (16-bit unsigned int).