wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Content / plugin_initializer.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 2d13ffa..c6eb519
@@ -15,9 +15,6 @@
 // limitations under the License.
 //
 
-
-#include <dpl/log/log.h>
-
 #include <Commons/plugin_initializer_def.h>
 #include <Commons/WrtAccess/WrtAccess.h>
 #include <Commons/Exception.h>
@@ -26,6 +23,7 @@
 
 #include "JSContentManager.h"
 #include "ContentAsyncCallbackManager.h"
+#include <Logger.h>
 
 using namespace DeviceAPI::Common;
 using namespace WrtDeviceApis;
@@ -37,20 +35,20 @@ namespace Content {
 
 void on_frame_load_callback(const void * context)
 {
-    LogDebug("[Tizen\\content] on_frame_load_callback (" << context << ")");
+    LoggerD("[Tizen\\content] on_frame_load_callback (" << context << ")");
        GlobalContextManager::getInstance()->addGlobalContext(static_cast<JSContextRef>(context));
 }
 
 void on_frame_unload_callback(const void * context)
 {
-    LogDebug("[Tizen\\content] on_frame_unload_callback (" << context << ")");
+    LoggerD("[Tizen\\content] on_frame_unload_callback (" << context << ")");
     GlobalContextManager::getInstance()->removeGlobalContext(static_cast<JSContextRef>(context));
     MediaContentAsyncCallbackManagerSingleton::Instance().unregisterContext(static_cast<JSContextRef>(context));
 }
 
 void on_widget_start_callback(int widgetId)
 {
-    LogDebug("[Tizen\\content] on_widget_start_callback (" << widgetId << ")");
+    LoggerD("[Tizen\\content] on_widget_start_callback (" << widgetId << ")");
        TIME_TRACER_INIT();
 
        Try
@@ -59,14 +57,14 @@ void on_widget_start_callback(int widgetId)
     }
     Catch(WrtDeviceApis::Commons::Exception)
     {
-        LogError("WrtAccess intialization failed");
+        LoggerE("WrtAccess intialization failed");
     }
 
 }
 
 void on_widget_stop_callback(int widgetId)
 {
-    LogDebug("[Tizen\\content] on_widget_stop_callback (" << widgetId << ")");
+    LoggerD("[Tizen\\content] on_widget_stop_callback (" << widgetId << ")");
        TIME_TRACER_EXPORT_REPORT_TO(TIME_TRACER_EXPORT_FILE,"Content");
        TIME_TRACER_RELEASE();
     Try
@@ -75,7 +73,7 @@ void on_widget_stop_callback(int widgetId)
        }
        Catch(WrtDeviceApis::Commons::Exception)
     {
-        LogError("WrtAccess deinitialization failed");
+        LoggerE("WrtAccess deinitialization failed");
     }
 }