From d84a3b91346038bf55d7111462dab42a0a26445d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 17 Sep 2008 22:18:09 +0200 Subject: Logger f?r Log-Messages benutzen --- src/mad-core.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mad-core.cpp') diff --git a/src/mad-core.cpp b/src/mad-core.cpp index ddc1414..40c3654 100644 --- a/src/mad-core.cpp +++ b/src/mad-core.cpp @@ -17,6 +17,8 @@ * with this program. If not, see . */ +#include "Common/Logger.h" +#include "Common/Backends/ConsoleLogger.h" #include "Net/Connection.h" #include "Core/ConnectionManager.h" #include "Core/ConfigManager.h" @@ -29,6 +31,9 @@ int main() { sigaddset(&signals, SIGPIPE); sigprocmask(SIG_BLOCK, &signals, 0); + Mad::Common::Backends::ConsoleLogger logger; + Mad::Common::Logger::registerLogger(&logger); + Mad::Core::ConfigManager::useConfigManager(); Mad::Core::ConnectionManager::init(); -- cgit v1.2.3