]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/globals.cpp
Changes and fixes to the iLogger interface:
[evaf] / src / libs / Common / globals.cpp
index 02aedd84d37a26a93ee8683b85213c1e8da2fe3a..5054bd1e05c71f1d4d8093277e564d7b3240a67f 100644 (file)
@@ -3,7 +3,7 @@
  * @brief Global constants and macros for eVaf
  * @author Enar Vaikene
  *
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2012 Enar Vaikene
  *
  * This file is part of the eVaf C++ cross-platform application development framework.
  *
@@ -47,12 +47,6 @@ bool eVaf::Common::init()
         if (!app->init())
             return false;
     }
-    eVaf::Common::Internal::Logger * logger =
-            qobject_cast<eVaf::Common::Internal::Logger *>(eVaf::Common::iLogger::instance());
-    if (logger) {
-        if (!logger->init())
-            return false;
-    }
     eVaf::Common::Internal::Config * config =
             qobject_cast<eVaf::Common::Internal::Config *>(eVaf::Common::iConfig::instance());
     if (config) {
@@ -65,6 +59,12 @@ bool eVaf::Common::init()
         if (!prop->init())
             return false;
     }
+    eVaf::Common::Internal::Logger * logger =
+            qobject_cast<eVaf::Common::Internal::Logger *>(eVaf::Common::iLogger::instance());
+    if (logger) {
+        if (!logger->init())
+            return false;
+    }
 
     EVAF_INFO("%s-Globals initialized", VER_MODULE_NAME_STR);