wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Calendar / JSCalendar.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 61646cb..35e7651
@@ -15,8 +15,6 @@
 // limitations under the License.
 //
 
-
-#include <dpl/log/log.h>
 #include "ICalendar.h"
 #include "EventId.h"
 #include "CalendarFactory.h"
@@ -47,7 +45,7 @@
 
 #include "CalendarAsyncCallbackManager.h"
 #include "CalendarListenerManager.h"
-
+#include <Logger.h>
 
 using namespace WrtDeviceApis::Commons;
 using namespace WrtDeviceApis::CommonsJavaScript;
@@ -105,14 +103,14 @@ JSClassRef JSCalendar::m_jsClassRef = JSClassCreate(JSCalendar::getClassInfo());
 void JSCalendar::initialize(JSContextRef context, JSObjectRef object)
 {
     if (!JSObjectGetPrivate(object)) {
-        LogDebug("Create calendar private object.");
+        LoggerD("Create calendar private object.");
         ICalendarPtr calendar = CalendarFactory::getInstance().createCalendarObject();
         CalendarPrivObject *priv = new CalendarPrivObject(context, calendar);
         if (!JSObjectSetPrivate(object, static_cast<void*>(priv))) {
             delete priv;
         }
     } else {
-        LogDebug("Private object already set.");
+        LoggerD("Private object already set.");
     }
 }
 
@@ -189,7 +187,7 @@ JSValueRef JSCalendar::add(JSContextRef context,
         calendar->addEvent(dplEvent);
 
         if (dplEvent->getResult()) {
-            LogDebug("Add result successful.");
+            LoggerD("Add result successful.");
                        TIME_TRACER_ITEM_END(__FUNCTION__, 0);
             return JSValueMakeUndefined(context);
         } else {
@@ -198,22 +196,22 @@ JSValueRef JSCalendar::add(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -267,7 +265,7 @@ JSValueRef JSCalendar::addBatch(JSContextRef context,
 
                cbm->setObject(thisObject);
 
-        LogDebug("Proceed the event to the platform.");
+        LoggerD("Proceed the event to the platform.");
 
         IEventAddEventsPtr dplEvent(new IEventAddEvents());
         dplEvent->setCalendarType(calendar->getType());
@@ -283,22 +281,22 @@ JSValueRef JSCalendar::addBatch(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -366,27 +364,27 @@ JSValueRef JSCalendar::update(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch (NotFoundException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -448,7 +446,7 @@ JSValueRef JSCalendar::updateBatch(JSContextRef context,
 
                cbm->setObject(thisObject);
 
-        LogDebug("Proceed the event to the platform.");
+        LoggerD("Proceed the event to the platform.");
 
         IEventUpdateEventsPtr dplEvent(new IEventUpdateEvents());
         dplEvent->setEvents(items);
@@ -464,27 +462,27 @@ JSValueRef JSCalendar::updateBatch(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch (NotFoundException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -545,7 +543,7 @@ JSValueRef JSCalendar::remove(JSContextRef context,
         calendar->deleteEvent(dplEvent);
 
         if (dplEvent->getResult()) {
-            LogInfo("Successfully deleted.");
+            LoggerI("Successfully deleted.");
                                TIME_TRACER_ITEM_END(__FUNCTION__, 0);
             return JSValueMakeUndefined(context);
         } else {
@@ -558,27 +556,27 @@ JSValueRef JSCalendar::remove(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch (NotFoundException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -632,7 +630,7 @@ JSValueRef JSCalendar::removeBatch(JSContextRef context,
             if (!itemIds) {
                 ThrowMsg(ConversionException, "Parameter conversion failed.");
             } else {
-               LogDebug("Array length: "<<itemIds->size());
+               LoggerD("Array length: "<<itemIds->size());
                }
         } else if (JSValueIsString(context, element)) {
             std::vector<std::string> idStrings = converter.toVectorOfStrings(arguments[0]);
@@ -660,7 +658,7 @@ JSValueRef JSCalendar::removeBatch(JSContextRef context,
 
                cbm->setObject(thisObject);
 
-        LogDebug("Proceed the event to the platform.");
+        LoggerD("Proceed the event to the platform.");
 
         IEventDeleteEventsPtr dplEvent(new IEventDeleteEvents());
         dplEvent->setEventIds(itemIds);
@@ -674,27 +672,27 @@ JSValueRef JSCalendar::removeBatch(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch (NotFoundException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -745,7 +743,7 @@ JSValueRef JSCalendar::find(JSContextRef context,
 
                cbm->setObject(thisObject);
 
-        LogDebug("Proceed the find event to the platform.");
+        LoggerD("Proceed the find event to the platform.");
 
         IEventFindEventsPtr dplEvent(new IEventFindEvents());
         dplEvent->setCalendarType(calendar->getType());
@@ -756,7 +754,7 @@ JSValueRef JSCalendar::find(JSContextRef context,
             if (JSValueIsObject(context, arguments[2])) {
                 dplEvent->setGenericFilter(filterConverter->toFilter(arguments[2]));
             } else if (JSValueIsNull(context, arguments[2]) || JSValueIsUndefined(context, arguments[2])) {
-                               LogDebug("Use default filter.");
+                               LoggerD("Use default filter.");
             } else {
                 ThrowMsg(ConversionException, "Wrong third parameter type.");
             }
@@ -768,7 +766,7 @@ JSValueRef JSCalendar::find(JSContextRef context,
                 sortModes->push_back(filterConverter->toSortMode(arguments[3]));
                 dplEvent->setSortModes(sortModes);
                        } else if (JSValueIsNull(context, arguments[3]) || JSValueIsUndefined(context, arguments[3])) {
-                               LogDebug("Use default sort mode.");
+                               LoggerD("Use default sort mode.");
             } else {
                 ThrowMsg(ConversionException, "Wrong fourth parameter type.");
             }
@@ -782,27 +780,27 @@ JSValueRef JSCalendar::find(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch (NotFoundException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -865,7 +863,7 @@ JSValueRef JSCalendar::get(JSContextRef context,
 
         // Process the found item.
         if (dplEvent->getResult()) {
-                       LogDebug("Successfully got an item.");
+                       LoggerD("Successfully got an item.");
                        if (CalendarEvent::EVENT_TYPE==calendar->getType()) {
                                TIME_TRACER_ITEM_END(__FUNCTION__, 0);
                 // Use global context for the expandRecurrence api in event.
@@ -885,27 +883,27 @@ JSValueRef JSCalendar::get(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch (NotFoundException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -977,7 +975,7 @@ JSValueRef JSCalendar::addChangeListener(JSContextRef context,
         JSCallbackManagerPtr onUpdatedCbm = JSCallbackManager::createObject(globalContext, result.onUpdated, NULL);
         JSCallbackManagerPtr onDeletedCbm = JSCallbackManager::createObject(globalContext, result.onDeleted, NULL);
 
-        LogDebug("Make change emitter and process sync operation.");
+        LoggerD("Make change emitter and process sync operation.");
 
         CalendarChangeCallbackPrivateDataPtr privData(new CalendarChangeCallbackPrivateData(
             onAddedCbm, onUpdatedCbm, onDeletedCbm));
@@ -998,7 +996,7 @@ JSValueRef JSCalendar::addChangeListener(JSContextRef context,
                        DeviceAPI::Common::IListenerItemPtr listenerItem = DPL::StaticPointerCast<DeviceAPI::Common::IListenerItem>(canceller);
                        CalendarListenerManagerSingleton::Instance().registerListener(listenerItem, globalContext);
 
-            LogDebug("Returning the watchId "<<watchId);
+            LoggerD("Returning the watchId "<<watchId);
                        TIME_TRACER_ITEM_END(__FUNCTION__, 0);
             return converter.toJSValueRefLong(watchId);
         } else {
@@ -1007,22 +1005,22 @@ JSValueRef JSCalendar::addChangeListener(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -1060,7 +1058,7 @@ JSValueRef JSCalendar::removeChangeListener(JSContextRef context,
             ThrowMsg(ConversionException, "Wrong parameter type.");
         }
 
-        LogDebug("Make sync operation with watchId: "<<watchId);
+        LoggerD("Make sync operation with watchId: "<<watchId);
 
         IEventClearWatchPtr dplEvent(new IEventClearWatch());
         dplEvent->setWatchId(watchId);
@@ -1076,27 +1074,27 @@ JSValueRef JSCalendar::removeChangeListener(JSContextRef context,
     }
     Catch(UnsupportedException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_SUPPORTED_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(InvalidArgumentException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::INVALID_VALUES_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(ConversionException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::TYPE_MISMATCH_ERROR, _rethrown_exception.GetMessage());
     }
     Catch (NotFoundException)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::NOT_FOUND_ERROR, _rethrown_exception.GetMessage());
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
         return JSTizenExceptionFactory::postException(context, exception, JSTizenException::UNKNOWN_ERROR, _rethrown_exception.GetMessage());
     }
 }
@@ -1118,7 +1116,7 @@ JSValueRef JSCalendar::getPropertyName(JSContextRef context,
        }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
     }
     return JSValueMakeUndefined(context);
 }
@@ -1140,7 +1138,7 @@ JSValueRef JSCalendar::getPropertyAccountServiceId(JSContextRef context,
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
     }
     return JSValueMakeUndefined(context);
 }
@@ -1162,7 +1160,7 @@ JSValueRef JSCalendar::getPropertyId(JSContextRef context,
     }
     Catch(Exception)
     {
-               LogWarning("Exception: "<<_rethrown_exception.GetMessage());
+               LoggerW("Exception: "<<_rethrown_exception.GetMessage());
     }
     return JSValueMakeUndefined(context);
 }