aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-13 11:23:23 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-09-13 11:23:23 +0200
commit4625e5e55eb2576f6ec2ccc19faac61c16217894 (patch)
tree91da1b0fa15dbff47150d1c5415f049e09a37080
parent46bed8d09f32360377350d71816a76abdfbf2c7c (diff)
downloadNorthstarLauncher-1.9.6.tar.gz
NorthstarLauncher-1.9.6.zip
Revert "Add log colours because they are pretty (#237)"v1.9.6
This reverts commit a97f1f07bb5aa31629cd87023e09669eb4bf1fe9.
-rw-r--r--NorthstarDLL/logging.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/NorthstarDLL/logging.cpp b/NorthstarDLL/logging.cpp
index 38430c76..8b752637 100644
--- a/NorthstarDLL/logging.cpp
+++ b/NorthstarDLL/logging.cpp
@@ -234,12 +234,9 @@ void InitialiseLogging()
hExceptionFilter = AddVectoredExceptionHandler(TRUE, ExceptionFilter);
AllocConsole();
- // 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");
+ freopen("CONOUT$", "w", stdout);
+ freopen("CONOUT$", "w", stderr);
+ spdlog::default_logger()->set_pattern("[%H:%M:%S] [%l] %v");
SetConsoleCtrlHandler(ConsoleHandlerRoutine, true);
}