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