wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Callhistory / plugin_initializer.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 6e4899d..a484085
@@ -15,8 +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>
@@ -24,6 +22,7 @@
 #include "JSCallHistory.h"
 #include "CallHistoryAsyncCallbackManager.h"
 #include "CallHistoryListenerManager.h"
+#include <Logger.h>
 
 #define CALLHISTORY "callhistory"
 
@@ -34,34 +33,34 @@ using namespace WrtDeviceApis::Commons;
 using namespace WrtDeviceApis::CommonsJavaScript;
 
 void on_widget_start_callback(int widgetId) {
-       LogDebug("[Tizen\\callhistory] on_widget_start_callback (" << widgetId << ")");
+       LoggerD("[Tizen\\callhistory] on_widget_start_callback (" << widgetId << ")");
        TIME_TRACER_INIT();
        try {
                WrtAccessSingleton::Instance().initialize(widgetId);
        } catch(WrtDeviceApis::Commons::Exception) {
-               LogError("WrtAccess initialization failed");
+               LoggerE("WrtAccess initialization failed");
        }
 }
 
 void on_widget_stop_callback(int widgetId) {
-       LogDebug("[Tizen\\callhistory] on_widget_stop_callback (" << widgetId << ")");
+       LoggerD("[Tizen\\callhistory] on_widget_stop_callback (" << widgetId << ")");
        TIME_TRACER_EXPORT_REPORT_TO(TIME_TRACER_EXPORT_FILE,"CallHistory");
        TIME_TRACER_RELEASE();
        try {
                WrtAccessSingleton::Instance().deinitialize(widgetId);
        } catch(WrtDeviceApis::Commons::Exception) {
-               LogError("WrtAccess deinitialization failed");
+               LoggerE("WrtAccess deinitialization failed");
        }
 }
 
 void on_frame_load_callback(const void * context)
 {
-    LogDebug("[Tizen\\callhistory] on_frame_load_callback (" << context << ")");
+    LoggerD("[Tizen\\callhistory] on_frame_load_callback (" << context << ")");
 }
 
 void on_frame_unload_callback(const void * context)
 {
-    LogDebug("[Tizen\\callhistory] on_frame_unload_callback (" << context << ")");
+    LoggerD("[Tizen\\callhistory] on_frame_unload_callback (" << context << ")");
 
     DeviceAPI::CallHistory::CallHistoryAsyncCallbackManagerSingleton::Instance().unregisterContext(static_cast<JSContextRef>(context));
     DeviceAPI::CallHistory::CallHistoryListenerManagerSingleton::Instance().unregisterContext(static_cast<JSContextRef>(context));