library/src/log.h

20 lines
300 B
C++

#ifndef LIBRARY_LOG_H
#define LIBRARY_LOG_H
#include <string>
enum LogLevel{
DEBUG = 1,
INFO = 2,
WARNING = 3,
ERROR = 4,
CRITICAL = 5,
OFF = 6
};
void log(const std::string &msg, LogLevel level = LogLevel::INFO);
void setLogLevel(LogLevel level);
#endif //LIBRARY_LOG_H