Inject logger instead of using a singleton

This commit is contained in:
2019-06-16 11:33:23 +02:00
parent 14740e4a64
commit 9ba225cbde
14 changed files with 76 additions and 56 deletions

View File

@@ -5,16 +5,8 @@
int main(int argc, char ** argv)
{
/*
ServerConfiguration & serverConfiguration;
if (serverConfiguration.LoadFromFile("./server.cfg") && !serverConfiguration.IsValid())
{
Logger::GetInstance().Error("Error loading configuration file, aborting.");
return 1;
}
*/
HttpServer httpServer;
Logger logger;
HttpServer httpServer(logger);
httpServer.Execute();
return 0;