summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-01 13:15:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-01 21:33:36 +0300
commite8ce245e0bbb87bc45d15b9f0eb8bf423373d203 (patch)
tree368c9b3745cc424c5abd3755a411266f09d181f7
parent1c04a68a1604bf59dd2c33195f9f3fb2207a91e2 (diff)
downloadmanaplus-e8ce245e0bbb87bc45d15b9f0eb8bf423373d203.tar.gz
manaplus-e8ce245e0bbb87bc45d15b9f0eb8bf423373d203.tar.bz2
manaplus-e8ce245e0bbb87bc45d15b9f0eb8bf423373d203.tar.xz
manaplus-e8ce245e0bbb87bc45d15b9f0eb8bf423373d203.zip
move global logger definition from client to logger file.
-rw-r--r--src/client.cpp1
-rw-r--r--src/logger.cpp2
2 files changed, 2 insertions, 1 deletions
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<int>((tv.tv_usec / 10000) % 100) \
<< "] ";
+Logger *logger = nullptr; // Log object
+
Logger::Logger() :
mLogFile(),
mLogToStandardOut(true),