//
#include <memory>
-#include <dpl/log/log.h>
#include "JSNetworkInfo.h"
+#include <Logger.h>
namespace DeviceAPI {
namespace Systeminfo {
void JSNetworkInfo::Finalize(JSObjectRef object)
{
- LogDebug("Entered");
+ LoggerD("Entered");
JSNetworkPriv* priv = static_cast<JSNetworkPriv*>(JSObjectGetPrivate(object));
JSObjectSetPrivate(object, NULL);
- LogDebug("Deleting networkInfo object");
+ LoggerD("Deleting networkInfo object");
delete priv;
}
JSValueRef JSNetworkInfo::getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception)
{
- LogDebug("Enter");
+ LoggerD("Enter");
JSNetworkPriv *priv = static_cast<JSNetworkPriv*>(JSObjectGetPrivate(object));
if (NULL == priv) {
- LogError("Private object not set.");
+ LoggerE("Private object not set.");
return JSValueMakeUndefined(context);
}
}
Catch(Exception)
{
- LogError("Exception: " << _rethrown_exception.GetMessage());
+ LoggerE("Exception: " << _rethrown_exception.GetMessage());
}
return JSValueMakeUndefined(context);
}