1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 14:07:46 +00:00
sapphire/src/common/Logging/Logger.h

38 lines
441 B
C
Raw Normal View History

2017-08-08 13:53:47 +02:00
#ifndef _LOGGER_H
2018-10-26 19:57:39 +11:00
#define _LOGGER_H
2017-08-08 13:53:47 +02:00
2018-10-26 20:06:12 +11:00
#include <string>
2017-08-08 13:53:47 +02:00
namespace Sapphire
{
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
class Logger
{
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
private:
std::string m_logFile;
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
public:
Logger();
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
~Logger();
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
void init();
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
void error( const std::string& text );
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
void info( const std::string& text );
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
void debug( const std::string& text );
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
void fatal( const std::string& text );
2018-10-28 21:53:21 +01:00
void setLogPath( const std::string& logPath );
2017-08-08 13:53:47 +02:00
2018-10-28 21:53:21 +01:00
};
2017-08-08 13:53:47 +02:00
}
2017-08-08 13:53:47 +02:00
2018-09-26 08:47:22 -04:00
#endif