wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Contact / JSContactWebSite.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 1455c6c..a8bce26
@@ -28,6 +28,7 @@
 #include <JSTizenException.h>
 #include "ContactConverter.h"
 #include "JSContactWebSite.h"
+#include <Logger.h>
 
 #define CONTACT_CLASS_NAME "ContactWebSite"
 
@@ -128,7 +129,7 @@ JSObjectRef JSContactWebSite::createJSObject(JSContextRef context, ContactWebSit
        JSContactWebSitePriv *priv = new JSContactWebSitePriv(context, contactWebSite);
        JSObjectRef jsObjectRef = JSObjectMake(context, getClassRef(), static_cast<void*>(priv));
        if (NULL == jsObjectRef) {
-               LogError("object creation error");
+               LoggerE("object creation error");
                return NULL;
        }
        return jsObjectRef;
@@ -153,7 +154,7 @@ JSObjectRef JSContactWebSite::constructor(JSContextRef context,
                const JSValueRef arguments[],
                JSValueRef* exception)
 {
-       LogDebug("entered");
+       LoggerD("entered");
 
        JSContactWebSitePriv *priv = static_cast<JSContactWebSitePriv*>(JSObjectGetPrivate(constructor));
        if (!priv) {
@@ -198,7 +199,7 @@ JSObjectRef JSContactWebSite::constructor(JSContextRef context,
        Try {
                jsobject = createJSObject(gContext, contactWebSite);
        } Catch(Exception) {
-               LogError("Argument type mismatch : " << _rethrown_exception.GetMessage());
+               LoggerE("Argument type mismatch : " << _rethrown_exception.GetMessage());
                *exception = JSTizenExceptionFactory::makeErrorObject(context, JSTizenException::TYPE_MISMATCH_ERROR, "Wrong arguments");
                return NULL;
        }
@@ -228,7 +229,7 @@ JSValueRef JSContactWebSite::getUrl(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to get incorrect value");
+               LoggerW("trying to get incorrect value");
        }
        return JSValueMakeUndefined(context);
 }
@@ -248,7 +249,7 @@ bool JSContactWebSite::setUrl(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to set incorrect value");
+               LoggerW("trying to set incorrect value");
                JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
        }
        return true;
@@ -273,7 +274,7 @@ JSValueRef JSContactWebSite::getType(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to get incorrect value");
+               LoggerW("trying to get incorrect value");
        }
        return JSValueMakeUndefined(context);
 }
@@ -301,7 +302,7 @@ bool JSContactWebSite::setType(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogWarning("trying to set incorrect value");
+               LoggerW("trying to set incorrect value");
                JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
        }
        return true;