mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-05 10:17:46 +00:00
37 lines
441 B
C++
37 lines
441 B
C++
#ifndef _LOGGER_H
|
|
#define _LOGGER_H
|
|
|
|
#include <string>
|
|
|
|
namespace Sapphire
|
|
{
|
|
|
|
class Logger
|
|
{
|
|
|
|
private:
|
|
std::string m_logFile;
|
|
|
|
public:
|
|
Logger();
|
|
|
|
~Logger();
|
|
|
|
void init();
|
|
|
|
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
|