From e8ce245e0bbb87bc45d15b9f0eb8bf423373d203 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Nov 2013 13:15:49 +0300 Subject: move global logger definition from client to logger file. --- src/client.cpp | 1 - src/logger.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client.cpp b/src/client.cpp index fa8b860d5..dd5b06776 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -167,7 +167,6 @@ Configuration features; // XML file features Configuration branding; // XML branding information reader Configuration paths; // XML default paths information reader Client *client = nullptr; -Logger *logger = nullptr; // Log object ChatLogger *chatLogger = nullptr; // Chat log object KeyboardConfig keyboard; UserPalette *userPalette = nullptr; diff --git a/src/logger.cpp b/src/logger.cpp index 953c9488b..972d333e4 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -60,6 +60,8 @@ << static_cast((tv.tv_usec / 10000) % 100) \ << "] "; +Logger *logger = nullptr; // Log object + Logger::Logger() : mLogFile(), mLogToStandardOut(true), -- cgit v1.2.3-70-g09d2