aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/logging.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-18 17:02:39 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-18 17:02:39 +0100
commita71d52ffd1531a4a03cb4c87dc56ace4f5cb33c1 (patch)
treed3cc5fcde9df08ff131a2216a44c73dee65fdc1f /NorthstarDedicatedTest/logging.cpp
parentca5db71e8215a6c5660fe03088a6d7349f55f817 (diff)
downloadNorthstarLauncher-a71d52ffd1531a4a03cb4c87dc56ace4f5cb33c1.tar.gz
NorthstarLauncher-a71d52ffd1531a4a03cb4c87dc56ace4f5cb33c1.zip
add rapidjson, move all logging to spdlog
Diffstat (limited to 'NorthstarDedicatedTest/logging.cpp')
-rw-r--r--NorthstarDedicatedTest/logging.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/NorthstarDedicatedTest/logging.cpp b/NorthstarDedicatedTest/logging.cpp
index 85b92c0c..dbfc292e 100644
--- a/NorthstarDedicatedTest/logging.cpp
+++ b/NorthstarDedicatedTest/logging.cpp
@@ -13,33 +13,4 @@ void InitialiseLogging()
freopen("CONOUT$", "w", stdout);
spdlog::default_logger()->set_pattern("[%H:%M:%S] [%l] %v");
-}
-
-// default logging sink
-void DefaultLoggingSink(Context context, char* message)
-{
- time_t now = time(0);
- tm* localTime = localtime(&now);
- char timeBuf[10];
- strftime(timeBuf, sizeof(timeBuf), "%X", localTime);
-
- std::string messageStr;
-
- messageStr.append("[");
- messageStr.append(timeBuf);
- messageStr.append("] ");
-
- if (context != NONE)
- {
- messageStr.append("[");
- messageStr.append(GetContextName(context));
- messageStr.append("] ");
- }
-
- messageStr.append(message);
- std::cout << messageStr;
-
- // dont need to check dedi since this won't be initialised on dedi anyway
- if ((*g_SourceGameConsole)->m_bInitialized)
- (*g_SourceGameConsole)->m_pConsole->m_pConsolePanel->Print(messageStr.c_str());
} \ No newline at end of file