1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 06:27:45 +00:00
sapphire/src/common/Logging/Logger.h
2018-10-26 20:06:12 +11:00

49 lines
596 B
C++

#ifndef _LOGGER_H
#define _LOGGER_H
#include <string>
namespace Core {
enum struct LoggingSeverity : uint8_t
{
trace = 0,
debug = 1,
info = 2,
warning = 3,
error = 4,
fatal = 5
};
class Logger
{
private:
std::string m_logFile;
public:
Logger();
~Logger();
void init();
void Log( LoggingSeverity logSev, const std::string& text );
void error( const std::string& text );
void info( const std::string& text );
void debug( const std::string& text );
void fatal( const std::string& text );
void setLogPath( const std::string& logPath );
};
}
#endif