aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/logging.cpp
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2022-08-23 22:50:21 +0100
committerGitHub <noreply@github.com>2022-08-23 23:50:21 +0200
commit812893d8219daa60f5b5b7fd22cbd6b175603399 (patch)
tree84e048bae2cab3ce4e78ae6eb592192b19da3ab0 /NorthstarDedicatedTest/logging.cpp
parente518c0213e5a77cf3b5544c1aa0671317a5c794d (diff)
downloadNorthstarLauncher-812893d8219daa60f5b5b7fd22cbd6b175603399.tar.gz
NorthstarLauncher-812893d8219daa60f5b5b7fd22cbd6b175603399.zip
Add log colours because they are pretty (#237)
* log colours :) * commend the freopen stuff (it causes problems) * formatting * add explanatory comment
Diffstat (limited to 'NorthstarDedicatedTest/logging.cpp')
-rw-r--r--NorthstarDedicatedTest/logging.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/logging.cpp b/NorthstarDedicatedTest/logging.cpp
index 8b752637..38430c76 100644
--- a/NorthstarDedicatedTest/logging.cpp
+++ b/NorthstarDedicatedTest/logging.cpp
@@ -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);
}