wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Content / ContentListener.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 7a082eb..5f5a668
 //
 
 #include <pthread.h>
-
-#include <dlog.h>
-
 #include <CommonsJavaScript/JSUtils.h>
 #include <CommonsJavaScript/Validator.h>
 #include <JSWebAPIError.h>
 #include <JSUtil.h>
 #include "ContentListener.h"
 #include "ContentConverter.h"
-
-#undef LOG_TAG
-#define LOG_TAG "TIZEN_DEVICEAPI"
+#include <Logger.h>
 
 using namespace DeviceAPI::Common;
 using namespace WrtDeviceApis::Commons;
@@ -122,7 +117,7 @@ ContentListener::~ContentListener() {
 
 void ContentListener::oncontentadded(MediacontentMediaPtr content)
 {
-        LogInfo("ContentListener::oncontentadded is entered");
+        LoggerI("ContentListener::oncontentadded is entered");
         JSContextRef context = m_callback->getContext();
 
         MediaConverterFactory::ConverterType converter = MediaConverterFactory::getConverter(context);
@@ -132,7 +127,7 @@ void ContentListener::oncontentadded(MediacontentMediaPtr content)
 
 void ContentListener::oncontentupdated(MediacontentMediaPtr content)
 {
-        LogInfo("ContentListener::oncontentupdated is entered");
+        LoggerI("ContentListener::oncontentupdated is entered");
         JSContextRef context = m_callback->getContext();
 
         MediaConverterFactory::ConverterType converter = MediaConverterFactory::getConverter(context);
@@ -143,7 +138,7 @@ void ContentListener::oncontentupdated(MediacontentMediaPtr content)
 
 void ContentListener::oncontentremoved(std::string id)
 {
-        LogInfo("ContentListener::oncontentremoved is entered");
+        LoggerI("ContentListener::oncontentremoved is entered");
         JSContextRef context = m_callback->getContext();
 
         MediaConverterFactory::ConverterType converter = MediaConverterFactory::getConverter(context);