// limitations under the License.
//
-
-#include <dpl/log/log.h>
#include <CommonsJavaScript/JSUtils.h>
#include <CommonsJavaScript/Converter.h>
#include <CommonsJavaScript/Validator.h>
#include <app.h>
#include <time.h>
+#include <Logger.h>
namespace DeviceAPI {
namespace Alarm {
{
JSAlarmRelativePriv *priv = static_cast<JSAlarmRelativePriv*>(JSObjectGetPrivate(object));
if (!priv) {
- LogError("Private object is null");
+ LoggerE("Private object is null");
}
delete priv;
}
long result = nextTime - currentTime;
- LogDebug("nextTime: "<<nextTime<<", currentTime: "<<currentTime<<", result: "<<result);
+ LoggerD("nextTime: "<<nextTime<<", currentTime: "<<currentTime<<", result: "<<result);
if(result < 0) {
// It is impossible
}
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);
}
period = privateData->getPeriod();
- LogInfo("JSAlarmRelative interval = " << period);
+ LoggerI("JSAlarmRelative interval = " << period);
if(period == -1) {
return JSValueMakeNull(ctx);
} else {