diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-08-23 22:50:21 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-08-25 21:29:52 +0200 |
commit | a97f1f07bb5aa31629cd87023e09669eb4bf1fe9 (patch) | |
tree | 11994c82ab642ce400b4897d952604b1dd9b3aaf /NorthstarDedicatedTest | |
parent | 09bc8a4ed28d762244ccae22ae6a8e6c210ea960 (diff) | |
download | NorthstarLauncher-a97f1f07bb5aa31629cd87023e09669eb4bf1fe9.tar.gz NorthstarLauncher-a97f1f07bb5aa31629cd87023e09669eb4bf1fe9.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')
-rw-r--r-- | NorthstarDedicatedTest/logging.cpp | 9 |
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); } |