wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Contact / JSContactPhoneNumberArray.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 693d642..0e7a7f0
  */
 
 #include <algorithm>
-#include <dpl/log/log.h>
 #include <CommonsJavaScript/ScopedJSStringRef.h>
 #include <JSTizenExceptionFactory.h>
 #include <JSTizenException.h>
 #include "ContactConverter.h"
 #include "JSContactPhoneNumberArray.h"
+#include <Logger.h>
 
 #define FUNCTION_CONCAT "concat"
 #define FUNCTION_JOIN "join"
@@ -116,7 +116,7 @@ JSValueRef JSContactPhoneNumberArray::getLength(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("invalid conversion");
+               LoggerE("invalid conversion");
        }
        return JSValueMakeUndefined(context);
 }
@@ -226,7 +226,7 @@ JSValueRef JSContactPhoneNumberArray::getProperty(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("invalid property");
+               LoggerE("invalid property");
        }
        return JSValueMakeUndefined(context);
 }
@@ -263,7 +263,7 @@ bool JSContactPhoneNumberArray::setProperty(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
                JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
        }
        return false;
@@ -296,7 +296,7 @@ bool JSContactPhoneNumberArray::deleteProperty(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
                JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
        }
        return false;
@@ -327,7 +327,7 @@ void JSContactPhoneNumberArray::getPropertyNames(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("invalid property");
+               LoggerE("invalid property");
        }
 }
 
@@ -371,7 +371,7 @@ JSValueRef JSContactPhoneNumberArray::concat(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
        }
        return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
 }
@@ -406,7 +406,7 @@ JSValueRef JSContactPhoneNumberArray::join(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
        }
        return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
 }
@@ -434,7 +434,7 @@ JSValueRef JSContactPhoneNumberArray::pop(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
        }
        return JSValueMakeUndefined(context);
 }
@@ -460,7 +460,7 @@ JSValueRef JSContactPhoneNumberArray::push(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
        }
        return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
 }
@@ -484,7 +484,7 @@ JSValueRef JSContactPhoneNumberArray::reverse(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
        }
        return JSValueMakeUndefined(context);
 }
@@ -511,7 +511,7 @@ JSValueRef JSContactPhoneNumberArray::shift(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
        }
        return JSValueMakeUndefined(context);
 }
@@ -557,7 +557,7 @@ JSValueRef JSContactPhoneNumberArray::slice(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
        }
        return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, "Type mismatch");
 }
@@ -581,7 +581,7 @@ JSValueRef JSContactPhoneNumberArray::sort(JSContextRef context,
        }
        Catch(WrtDeviceApis::Commons::Exception)
        {
-               LogError("error occured");
+               LoggerE("error occured");
        }
        return JSValueMakeUndefined(context);
 }