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