mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 15:38:11 +08:00
23 lines
508 B
C++
23 lines
508 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
|
|
#define LOCALLOGLEVEL DEBUG
|
|
|
|
class Logger {
|
|
public:
|
|
enum LogLevel { DEBUG, INFO, WARNING, ERR };
|
|
|
|
private:
|
|
static LogLevel _level;
|
|
static std::string _previous;
|
|
|
|
public:
|
|
static void setLogLevel(LogLevel level);
|
|
static void log(LogLevel level, std::string message);
|
|
static void debug(std::string message);
|
|
static void info(std::string message);
|
|
static void warning(std::string message);
|
|
static void error(std::string message);
|
|
};
|