#ifndef _TIZEN_COMMONS_ASYNC_CALLBACK_MANAGER_H_
#define _TIZEN_COMMONS_ASYNC_CALLBACK_MANAGER_H_
-#include <dpl/log/log.h>
#include <dpl/shared_ptr.h>
#include <dpl/type_list.h>
#include <CommonsJavaScript/JSCallbackManager.h>
+#include "Logger.h"
namespace DeviceAPI {
namespace Common {
virtual void registerCallbackManager(WrtDeviceApis::CommonsJavaScript::JSCallbackManagerPtr &cbm, const JSContextRef context)
{
- LogDebug("Registering an callback manager on context:" << context);
+ LoggerD("Registering an callback manager on context:" << context);
m_map.insert(JSCallbackManagerPair(cbm, context));
}
virtual void unregisterContext(const JSContextRef context)
{
- LogDebug("Unregistering all callback managers on context:" << context);
+ LoggerD("Unregistering all callback managers on context:" << context);
for(JSCallbackManagerMapIter i=m_map.begin(); i!=m_map.end(); i++)
{
if(i->second == context)
{
- LogDebug("unregister a callback manager");
+ LoggerD("unregister a callback manager");
i->first->setOnSuccess(NULL);
i->first->setOnError(NULL);
// This function does not remove cbm from multimap.
virtual void unregisterCallbackManager(const WrtDeviceApis::CommonsJavaScript::JSCallbackManagerPtr &cbm)
{
- LogDebug("Unregistering an callback manager");
+ LoggerD("Unregistering an callback manager");
JSCallbackManagerMapIter i = m_map.find(cbm);
if(i == m_map.end())
{
- LogWarning("nothing to unregister");
+ LoggerW("nothing to unregister");
// Something wrong
return;
}