29 lines
609 B
C++
29 lines
609 B
C++
|
|
#ifndef UXLOGGER_HPP
|
|
#define UXLOGGER_HPP
|
|
|
|
#include <iostream>
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <mutex>
|
|
#include <ctime>
|
|
|
|
class UxLogger {
|
|
private:
|
|
std::string label;
|
|
void LogLevel(const std::string level, const std::string& message);
|
|
public:
|
|
UxLogger(std::string ilabel);
|
|
UxLogger();
|
|
void Log(const std::string& message);
|
|
void Debug(const std::string& message);
|
|
void Info(const std::string& message);
|
|
void Warning(const std::string& message);
|
|
void Error(const std::string& message);
|
|
};
|
|
|
|
|
|
extern UxLogger uxlogger;
|
|
|
|
#endif
|