added logger
triing to add logger and some queue features (main loop can send and retrieve items form queue based on schedule and communication with dekstop interface)
This commit is contained in:
21
src/client_backend/log.h
Normal file
21
src/client_backend/log.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef LOG_H
|
||||
#define LOG_H
|
||||
|
||||
#include <iostream>
|
||||
#include <ctime>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include "well_known.h"
|
||||
enum class LOGLEVEL {
|
||||
INFO,
|
||||
WARN,
|
||||
ERR
|
||||
};
|
||||
|
||||
std::string get_loglevel(LOGLEVEL level);
|
||||
|
||||
template <typename... Args>
|
||||
void log(LOGLEVEL level, const std::string& message, Args&&... args);
|
||||
|
||||
|
||||
#endif // LOGGER_H
|
||||
Reference in New Issue
Block a user