diff --git a/include/logvisor/logvisor.hpp b/include/logvisor/logvisor.hpp index 4a55bf8..ab826a3 100644 --- a/include/logvisor/logvisor.hpp +++ b/include/logvisor/logvisor.hpp @@ -204,6 +204,8 @@ public: { auto lk = LockLog(); ++_LogCounter; + if (severity == Fatal) + RegisterConsoleLogger(); for (auto& logger : MainLoggers) { va_list apc; @@ -242,6 +244,8 @@ public: { auto lk = LockLog(); ++_LogCounter; + if (severity == Fatal) + RegisterConsoleLogger(); for (auto& logger : MainLoggers) { va_list apc;