wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Alarm / JSAlarmRelative.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 315a290..fa76169
@@ -15,8 +15,6 @@
 // limitations under the License.
 //
 
-
-#include <dpl/log/log.h>
 #include <CommonsJavaScript/JSUtils.h>
 #include <CommonsJavaScript/Converter.h>
 #include <CommonsJavaScript/Validator.h>
@@ -41,6 +39,7 @@
 
 #include <app.h>
 #include <time.h>
+#include <Logger.h>
 
 namespace DeviceAPI {
 namespace Alarm {
@@ -103,7 +102,7 @@ void JSAlarmRelative::finalize(JSObjectRef object)
 {
     JSAlarmRelativePriv *priv = static_cast<JSAlarmRelativePriv*>(JSObjectGetPrivate(object));
     if (!priv) {
-        LogError("Private object is null");
+        LoggerE("Private object is null");
     }
     delete priv;
 }
@@ -205,7 +204,7 @@ JSValueRef JSAlarmRelative::getRemainingSeconds(JSContextRef ctx, JSObjectRef fu
 
         long result = nextTime - currentTime;
 
-        LogDebug("nextTime: "<<nextTime<<", currentTime: "<<currentTime<<", result: "<<result);
+        LoggerD("nextTime: "<<nextTime<<", currentTime: "<<currentTime<<", result: "<<result);
 
         if(result < 0) {
             // It is impossible
@@ -263,7 +262,7 @@ JSValueRef JSAlarmRelative::getDelay(JSContextRef ctx,
            }
                
         delay = privateData->getDelay();
-        LogInfo("JSAlarmRelative delay = " << delay);
+        LoggerI("JSAlarmRelative delay = " << delay);
         return DeviceAPI::Common::JSUtil::toJSValueRef(ctx, delay);
     } catch (const BasePlatformException &err) {
         return JSWebAPIException::throwException(ctx, exception, err);
@@ -287,7 +286,7 @@ JSValueRef JSAlarmRelative::getPeriod(JSContextRef ctx,
            }
                
         period = privateData->getPeriod();
-        LogInfo("JSAlarmRelative interval = " << period);
+        LoggerI("JSAlarmRelative interval = " << period);
          if(period == -1) {
             return JSValueMakeNull(ctx);
         } else {