17 #ifndef COMMONDEVICE_H
18 #define COMMONDEVICE_H
38 time_t timestamp = time(0);
41 tstruct = *localtime(×tamp);
42 strftime(timeChars,
sizeof(timeChars),
"%d %b %Y %H:%M:%S @ ", &tstruct);
43 std::cout << timeChars <<
instanceName << message << std::endl;
45 inline void warn(std::string message) {
51 inline void log(std::string message) {
void printMessage(std::string message)
void log(std::string message)
void warn(std::string message)