mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-15 08:16:08 +00:00
refactor(Core/sLog): improve singleton management (#3801)
This commit is contained in:
@@ -65,10 +65,11 @@ Log::~Log()
|
||||
miscLogFile = NULL;
|
||||
}
|
||||
|
||||
Log* Log::instance()
|
||||
|
||||
std::unique_ptr<ILog>& getLogInstance()
|
||||
{
|
||||
static Log instance;
|
||||
return &instance;
|
||||
static std::unique_ptr<ILog> instance = std::make_unique<Log>();
|
||||
return instance;
|
||||
}
|
||||
|
||||
void Log::SetLogLevel(char* Level)
|
||||
|
||||
Reference in New Issue
Block a user