wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / MessagePort / JSMessagePortManager.cpp
index e07ed42..229a6e7 100644 (file)
@@ -23,8 +23,6 @@
  */
 
 #include "JSMessagePortManager.h"
-
-#include <dpl/log/log.h>
 #include <dpl/shared_ptr.h>
 #include <CommonsJavaScript/Validator.h>
 #include <JSWebAPIException.h>
@@ -35,6 +33,7 @@
 #include "JSLocalMessagePort.h"
 #include "JSRemoteMessagePort.h"
 #include "MessagePortJSUtil.h"
+#include <Logger.h>
 
 #define CLASS_NAME "MessagePortManager"
 
@@ -126,7 +125,7 @@ JSValueRef JSMessagePortManager::requestLocalMessagePort(JSContextRef context,
                const JSValueRef arguments[],
                JSValueRef* exception)
 {
-       LogDebug("entered");
+       LoggerD("entered");
        TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
        MessagePortManagerPtr messagePortManager;
        JSContextRef gContext;
@@ -143,7 +142,7 @@ JSValueRef JSMessagePortManager::requestLocalMessagePort(JSContextRef context,
        }
        catch(BasePlatformException &e)
        {
-               LogError("No private object");
+               LoggerE("No private object");
                return JSWebAPIException::throwException(context, exception, e);
        }
 
@@ -178,7 +177,7 @@ JSValueRef JSMessagePortManager::requestLocalMessagePort(JSContextRef context,
        }
        Catch(Exception)
        {
-               LogError("Error on platform : " << _rethrown_exception.GetMessage());
+               LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
                return JSWebAPIException::throwException(context, exception,
                                UnknownException("Plugin's internal error"));
        }
@@ -213,7 +212,7 @@ JSValueRef JSMessagePortManager::requestLocalMessagePort(JSContextRef context,
        }
        catch(BasePlatformException &e)
        {
-               LogError("Error on conversion : " << e.getMessage());
+               LoggerE("Error on conversion : " << e.getMessage());
                return JSWebAPIException::throwException(context, exception,
                                UnknownException("Internal error"));
        }
@@ -229,7 +228,7 @@ JSValueRef JSMessagePortManager::requestTrustedLocalMessagePort(JSContextRef con
                const JSValueRef arguments[],
                JSValueRef* exception)
 {
-       LogDebug("entered");
+       LoggerD("entered");
        TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
        MessagePortManagerPtr messagePortManager;
        JSContextRef gContext;
@@ -246,7 +245,7 @@ JSValueRef JSMessagePortManager::requestTrustedLocalMessagePort(JSContextRef con
        }
        catch(BasePlatformException &e)
        {
-               LogError("No private object");
+               LoggerE("No private object");
                return JSWebAPIException::throwException(context, exception, e);
        }
 
@@ -281,7 +280,7 @@ JSValueRef JSMessagePortManager::requestTrustedLocalMessagePort(JSContextRef con
        }
        Catch(Exception)
        {
-               LogError("Error on platform : " << _rethrown_exception.GetMessage());
+               LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
                return JSWebAPIException::throwException(context, exception,
                                UnknownException("Plugin's internal error"));
        }
@@ -316,7 +315,7 @@ JSValueRef JSMessagePortManager::requestTrustedLocalMessagePort(JSContextRef con
        }
        catch(BasePlatformException &e)
        {
-               LogError("Error on conversion : " << e.getMessage());
+               LoggerE("Error on conversion : " << e.getMessage());
                return JSWebAPIException::throwException(context, exception,
                                UnknownException("Internal error"));
        }
@@ -332,7 +331,7 @@ JSValueRef JSMessagePortManager::requestRemoteMessagePort(JSContextRef context,
                const JSValueRef arguments[],
                JSValueRef* exception)
 {
-       LogDebug("entered");
+       LoggerD("entered");
        TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
        MessagePortManagerPtr messagePortManager;
        JSContextRef gContext;
@@ -349,7 +348,7 @@ JSValueRef JSMessagePortManager::requestRemoteMessagePort(JSContextRef context,
        }
        catch(BasePlatformException &e)
        {
-               LogError("No private object");
+               LoggerE("No private object");
                return JSWebAPIException::throwException(context, exception, e);
        }
 
@@ -394,7 +393,7 @@ JSValueRef JSMessagePortManager::requestRemoteMessagePort(JSContextRef context,
        }
        Catch(Exception)
        {
-               LogError("Error on platform : " << _rethrown_exception.GetMessage());
+               LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
                return JSWebAPIException::throwException(context, exception,
                                UnknownException("Plugin's internal error"));
        }
@@ -434,7 +433,7 @@ JSValueRef JSMessagePortManager::requestRemoteMessagePort(JSContextRef context,
        }
        catch(BasePlatformException &e)
        {
-               LogError("Error on conversion : " << e.getMessage());
+               LoggerE("Error on conversion : " << e.getMessage());
                return JSWebAPIException::throwException(context, exception,
                                UnknownException("Internal error"));
        }
@@ -450,7 +449,7 @@ JSValueRef JSMessagePortManager::requestTrustedRemoteMessagePort(JSContextRef co
                const JSValueRef arguments[],
                JSValueRef* exception)
 {
-       LogDebug("entered");
+       LoggerD("entered");
        TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
        MessagePortManagerPtr messagePortManager;
        JSContextRef gContext;
@@ -467,7 +466,7 @@ JSValueRef JSMessagePortManager::requestTrustedRemoteMessagePort(JSContextRef co
        }
        catch(BasePlatformException &e)
        {
-               LogError("No private object");
+               LoggerE("No private object");
                return JSWebAPIException::throwException(context, exception, e);
        }
 
@@ -512,7 +511,7 @@ JSValueRef JSMessagePortManager::requestTrustedRemoteMessagePort(JSContextRef co
        }
        Catch(Exception)
        {
-               LogError("Error on platform : " << _rethrown_exception.GetMessage());
+               LoggerE("Error on platform : " << _rethrown_exception.GetMessage());
                return JSWebAPIException::throwException(context, exception,
                                UnknownException("Plugin's internal error"));
        }
@@ -552,7 +551,7 @@ JSValueRef JSMessagePortManager::requestTrustedRemoteMessagePort(JSContextRef co
        }
        catch(BasePlatformException &e)
        {
-               LogError("Error on conversion : " << e.getMessage());
+               LoggerE("Error on conversion : " << e.getMessage());
                return JSWebAPIException::throwException(context, exception,
                                UnknownException("Internal error"));
        }