wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Systeminfo / JSDisplayInfo.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 5130620..1667562
@@ -16,8 +16,8 @@
 //
 
 #include <memory>
-#include <dpl/log/log.h>
 #include "JSDisplayInfo.h"
+#include <Logger.h>
 
 namespace DeviceAPI {
 namespace Systeminfo {
@@ -86,10 +86,10 @@ void JSDisplayInfo::Initialize(JSContextRef context, JSObjectRef object)
 
 void JSDisplayInfo::Finalize(JSObjectRef object)
 {
-    LogDebug("Entered");
+    LoggerD("Entered");
     JSDisplayPriv* priv = static_cast<JSDisplayPriv*>(JSObjectGetPrivate(object));
     JSObjectSetPrivate(object, NULL);
-    LogDebug("Deleting DisplayInfo object");
+    LoggerD("Deleting DisplayInfo object");
     delete priv;
 }
 
@@ -106,10 +106,10 @@ JSObjectRef JSDisplayInfo::createJSObject(JSContextRef context, const DisplayPro
 
 JSValueRef JSDisplayInfo::getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception)
 {
-    LogDebug("Enter");
+    LoggerD("Enter");
     JSDisplayPriv *priv = static_cast<JSDisplayPriv*>(JSObjectGetPrivate(object));
     if (NULL == priv) {
-        LogError("Private object not set.");
+        LoggerE("Private object not set.");
         return JSValueMakeUndefined(context);
     }
 
@@ -135,7 +135,7 @@ JSValueRef JSDisplayInfo::getProperty(JSContextRef context, JSObjectRef object,
     }
     Catch(Exception)
     {
-        LogError("Exception: " << _rethrown_exception.GetMessage());
+        LoggerE("Exception: " << _rethrown_exception.GetMessage());
     }
     return JSValueMakeUndefined(context);
 }