use spdlog for logging in ws + unittest + remove un-needed mutex

This commit is contained in:
Benjamin Sergeant
2019-05-09 15:30:44 -07:00
parent 7c30c8aa07
commit dc1f9fb243
114 changed files with 29168 additions and 6 deletions

View File

@ -20,17 +20,20 @@
#include <unistd.h>
#include <cli11/CLI11.hpp>
#include <spdlog/spdlog.h>
#include <ixwebsocket/IXSocket.h>
#include <ixwebsocket/IXNetSystem.h>
#include <ixcore/utils/IXCoreLogger.h>
int main(int argc, char** argv)
{
ix::initNetSystem();
ix::IXCoreLogger::LogFunc logFunc = [](const char* msg)
{
std::cerr << msg << std::endl;
spdlog::info(msg);
};
ix::IXCoreLogger::setLogFunction(logFunc);