mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-04 01:49:05 +00:00
Improved logging capabilities
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
namespace LX
|
||||
{
|
||||
// Allocates memory for the log file pointer //
|
||||
std::ofstream* Log::s_LogFile = nullptr;
|
||||
|
||||
void Log::Init()
|
||||
std::ofstream* Log::s_LogFile = nullptr;
|
||||
Log::Priority Log::s_Priority;
|
||||
|
||||
void Log::Init(Priority _default)
|
||||
{
|
||||
// The actual object holding the log file //
|
||||
// Has to be done like this to stop MSVC complaining //
|
||||
@@ -14,5 +16,8 @@ namespace LX
|
||||
// Opens the log file and assigns it to the log pointer //
|
||||
actualLog.open("log");
|
||||
s_LogFile = &actualLog;
|
||||
|
||||
// Assigns the priority //
|
||||
s_Priority = _default;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user