wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Messaging / JSConversation.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 04aa758..47eacd2
@@ -28,6 +28,7 @@
 #include "ConverterMessage.h"
 
 #include <JSWebAPIError.h>
+#include <Logger.h>
 
 
 using namespace std;
@@ -113,16 +114,16 @@ JSClassRef JSConversation::m_jsClassRef = JSClassCreate(JSConversation::getClass
 
 void JSConversation::initialize(JSContextRef context, JSObjectRef object)
 {
-       LogDebug("JSConversation::initialize ");
+       LoggerD("JSConversation::initialize ");
        JSConversationPriv* priv = static_cast<JSConversationPriv*>(JSObjectGetPrivate(object));
 ;
        if (priv == NULL)
        {
-               LogDebug("Private data is null ");
+               LoggerD("Private data is null ");
        }
        else
        {
-               LogDebug("JSConversation::already exist ");
+               LoggerD("JSConversation::already exist ");
        }
 }
 
@@ -137,7 +138,7 @@ JSObjectRef JSConversation::createJSObject(JSContextRef context, IConversationPt
 void JSConversation::finalize(JSObjectRef object) {
        JSConversationPriv* priv = static_cast<JSConversationPriv*>(JSObjectGetPrivate(object));
 
-       LogDebug("JSConversation::Finalize");
+       LoggerD("JSConversation::Finalize");
 
        if (priv != NULL)
        {
@@ -156,7 +157,7 @@ JSValueRef JSConversation::getProperty(JSContextRef context,
                                                                                JSStringRef propertyName,
                                                                                JSValueRef* exception)
 {
-       LogDebug("OK");
+       LoggerD("OK");
 
        ConverterMessageFactory::ConverterType converter =  ConverterMessageFactory::getConverter(context);
 //     WrtDeviceApis::CommonsJavaScript::Converter converter(context);
@@ -230,7 +231,7 @@ JSValueRef JSConversation::getProperty(JSContextRef context,
 
        }
        catch (const WrtDeviceApis::Commons::Exception& ex) {
-               LogError("Exception: " << ex.GetMessage());
+               LoggerE("Exception: " << ex.GetMessage());
                return JSValueMakeUndefined(context);
        }
        return NULL;
@@ -242,7 +243,7 @@ bool JSConversation::setProperty(JSContextRef context,
         JSValueRef value,
         JSValueRef* exception)
 {
-    LogDebug("entered");
+    LoggerD("entered");
 
     if (JSStringIsEqualToUTF8CString(propertyName, CONVID)) {
         return true;
@@ -278,7 +279,7 @@ void JSConversation::getPropertyNames(JSContextRef context,
         JSObjectRef object,
         JSPropertyNameAccumulatorRef propertyNames)
 {
-    LogDebug("Entered");
+    LoggerD("Entered");
     JSStringRef propertyName = NULL;
 
     propertyName = JSStringCreateWithUTF8CString(CONVID);