Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…

#include "Log.hpp" | |
Log* Log::s_Log = nullptr; | |
Log::Log() { | |
} | |
void Log::Open(const std::string& path) | |
{ | |
file.open(path, std::ios::out); | |
} | |
Log* Log::Get() { | |
if (s_Log == nullptr) | |
s_Log = new Log(); | |
return s_Log; | |
} | |
void Log::log(const std::string& str) { | |
#ifdef HALITE_LOCAL | |
Get()->file << str << std::endl; | |
#endif | |
} | |
std::ofstream& Log::log() | |
{ | |
return Get()->file; | |
} |