Add log colours because they are pretty (#237)
* log colours :) * commend the freopen stuff (it causes problems) * formatting * add explanatory comment
This commit is contained in:
parent
e518c0213e
commit
812893d821
|
@ -234,9 +234,12 @@ void InitialiseLogging()
|
|||
hExceptionFilter = AddVectoredExceptionHandler(TRUE, ExceptionFilter);
|
||||
|
||||
AllocConsole();
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
spdlog::default_logger()->set_pattern("[%H:%M:%S] [%l] %v");
|
||||
// these two lines are responsible for stuff to not show up in the console sometimes, from talking about it on discord
|
||||
// apparently they were meant to make logging work when using -northstar, however from testing it seems that it doesnt
|
||||
// work regardless of these two lines
|
||||
// freopen("CONOUT$", "w", stdout);
|
||||
// freopen("CONOUT$", "w", stderr);
|
||||
spdlog::default_logger()->set_pattern("[%H:%M:%S] [%^%l%$] %v");
|
||||
|
||||
SetConsoleCtrlHandler(ConsoleHandlerRoutine, true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue