Force console logger registration on Fatal

This commit is contained in:
Jack Andersen 2018-05-26 16:17:12 -10:00
parent 073cf1473b
commit 2352699c65
1 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,8 @@ public:
{ {
auto lk = LockLog(); auto lk = LockLog();
++_LogCounter; ++_LogCounter;
if (severity == Fatal)
RegisterConsoleLogger();
for (auto& logger : MainLoggers) for (auto& logger : MainLoggers)
{ {
va_list apc; va_list apc;
@ -242,6 +244,8 @@ public:
{ {
auto lk = LockLog(); auto lk = LockLog();
++_LogCounter; ++_LogCounter;
if (severity == Fatal)
RegisterConsoleLogger();
for (auto& logger : MainLoggers) for (auto& logger : MainLoggers)
{ {
va_list apc; va_list apc;