wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Bookmark / JSBookmarkItem.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 51edb4a..55d0c06
 #include "JSBookmarkItem.h"
 #include "JSBookmarkFolder.h"
 #include "BookmarkData.h"
-#include <dpl/log/log.h>
 #include <JSTizenException.h>
 #include <JSTizenExceptionFactory.h>
 #include <CommonsJavaScript/Converter.h>
 #include <ArgumentValidator.h>
 #include <PlatformException.h>
 #include <JSWebAPIException.h>
+#include <Logger.h>
 
 using namespace DeviceAPI::Common;
 using namespace WrtDeviceApis::CommonsJavaScript;
@@ -83,12 +83,12 @@ const JSClassDefinition* JSBookmarkItem::getClassInfo()
 
 void JSBookmarkItem::initialize(JSContextRef ctx, JSObjectRef object)
 {
-    LogDebug("JSBookmarkItem::initialize()");
+    LoggerD("JSBookmarkItem::initialize()");
 }
 
 void JSBookmarkItem::finalize(JSObjectRef object)
 {
-    LogDebug("JSBookmarkItem::finalize()");
+    LoggerD("JSBookmarkItem::finalize()");
     BookmarkData *priv = static_cast<BookmarkData *>(JSObjectGetPrivate(object));
     if( priv ){
         JSObjectSetPrivate(object, NULL);
@@ -97,7 +97,7 @@ void JSBookmarkItem::finalize(JSObjectRef object)
 }
 
 JSObjectRef JSBookmarkItem::constructor(JSContextRef ctx, JSObjectRef constructor, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception){
-    LogDebug("JSBookmarkItem::constructor()");
+    LoggerD("JSBookmarkItem::constructor()");
     ArgumentValidator validator(ctx, argumentCount, arguments);
     try{
         std::string title = validator.toString(0);
@@ -119,11 +119,11 @@ JSObjectRef JSBookmarkItem::constructor(JSContextRef ctx, JSObjectRef constructo
 }
 
 JSObjectRef JSBookmarkItem::createJSObject(JSContextRef context, const std::string &title, const std::string &url) {
-       LogDebug("Enter");
+       LoggerD("Enter");
     return createJSObject(context, title, url, UNDEFINED_ID, UNDEFINED_ID);
 }
 JSObjectRef JSBookmarkItem::createJSObject(JSContextRef context, const std::string &title, const std::string &url, const int id, const int parentId) {
-       LogDebug("Enter");
+       LoggerD("Enter");
        if (title == "")
                throw InvalidValuesException("Title is empty");
        if (url == "")
@@ -141,7 +141,7 @@ JSObjectRef JSBookmarkItem::createJSObject(JSContextRef context, void *priv) {
 #endif
 JSValueRef JSBookmarkItem::getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception)
 {
-       LogDebug("Enter");
+       LoggerD("Enter");
        try     {
                Converter convert(context);
                BookmarkData *priv = static_cast<BookmarkData *>(JSObjectGetPrivate(object));