wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Messaging / plugin_initializer.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 213b932..38607e2
@@ -15,7 +15,6 @@
 // limitations under the License.
 //
 
-#include <dpl/log/log.h>
 #include <Commons/plugin_initializer_def.h>
 #include <Commons/WrtAccess/WrtAccess.h>
 #include "JSMessagingServiceManager.h"
@@ -26,6 +25,7 @@
 #include "MessageListenerManager.h"
 
 #include <GlobalContextManager.h>
+#include <Logger.h>
 
 #define WRT_JS_EXTENSION_OBJECT_TIZEN "tizen"
 
@@ -60,32 +60,32 @@ using namespace WrtDeviceApis;
 using namespace WrtDeviceApis::Commons;
 
 void on_widget_start_callback(int widgetId) {
-       LogDebug("[Tizen\\MessagingServiceManager] on_widget_start_callback ("<<widgetId<<")");
+       LoggerD("[Tizen\\MessagingServiceManager] on_widget_start_callback ("<<widgetId<<")");
     Try {
         WrtAccessSingleton::Instance().initialize(widgetId);
     } Catch(Commons::Exception) {
-        LogError("WrtAccess initialization failed");
+        LoggerE("WrtAccess initialization failed");
     }
 }
 
 void on_widget_stop_callback(int widgetId) {
-       LogDebug("[Tizen\\MessagingServiceManager] on_widget_stop_callback ("<<widgetId<<")");
+       LoggerD("[Tizen\\MessagingServiceManager] on_widget_stop_callback ("<<widgetId<<")");
     Try {
         WrtAccessSingleton::Instance().deinitialize(widgetId);
     } Catch(Commons::Exception) {
-        LogError("WrtAccess deinitialization failed");
+        LoggerE("WrtAccess deinitialization failed");
     }
 }
 
 void on_frame_load_callback(const void * context)
 {
-    LogDebug("[Tizen\\contact] on_frame_load_callback (" << context << ")");
+    LoggerD("[Tizen\\contact] on_frame_load_callback (" << context << ")");
     DeviceAPI::Common::GlobalContextManager::getInstance()->addGlobalContext(static_cast<JSContextRef>(context));
 }
 
 void on_frame_unload_callback(const void * context)
 {
-    LogDebug("[Tizen\\contact] on_frame_unload_callback (" << context << ")");
+    LoggerD("[Tizen\\contact] on_frame_unload_callback (" << context << ")");
 
     DeviceAPI::Common::GlobalContextManager::getInstance()->removeGlobalContext(static_cast<JSContextRef>(context));
     DeviceAPI::Messaging::MessageAsyncCallbackManagerSingleton::Instance().unregisterContext(static_cast<JSContextRef>(context));