mirror of https://github.com/AxioDL/logvisor.git
Force console logger registration on Fatal
This commit is contained in:
parent
073cf1473b
commit
2352699c65
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue