void JSApplication::initialize(JSContextRef context, JSObjectRef object)
{
- LogInfo(">> initialize");
+ LoggerI(">> initialize");
}
void JSApplication::finalize(JSObjectRef object)
{
- LogInfo(">> finalize");
+ LoggerI(">> finalize");
JSApplicationPriv* priv = static_cast<JSApplicationPriv*>(JSObjectGetPrivate(object));
JSObjectSetPrivate(object, NULL);
- LogDebug("Deleting JSApplication object");
+ LoggerD("Deleting JSApplication object");
delete priv;
}
JSValueRef JSApplication::makeObject(JSContextRef ctx, const ApplicationPtr value)
{
- LogInfo("entered to ApplicationPtr ");
+ LoggerI("entered to ApplicationPtr ");
if(value == NULL) {
throw TypeMismatchException("Private object is NULL.");
}
return converter->toJSValueRef(privateData->getContextId());
}
} Catch(WrtDeviceApis::Commons::Exception) {
- LogError("Exception: " << _rethrown_exception.GetMessage());
+ LoggerE("Exception: " << _rethrown_exception.GetMessage());
JSTizenExceptionFactory::postException(context, exception,JSTizenException::INVALID_VALUES_ERROR, "Invalid value error");
}
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("entered");
+ LoggerD("entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
try {
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("entered");
+ LoggerD("entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
try {
const JSValueRef arguments[],
JSValueRef* exception)
{
- LogDebug("entered");
+ LoggerD("entered");
TIME_TRACER_ITEM_BEGIN(__FUNCTION__, 0);
JSApplicationPriv *priv = static_cast<JSApplicationPriv*>(JSObjectGetPrivate(thisObject));
ScopedJSStringRef(JSStringCreateWithUTF8CString("__bundle")).get(),
exception);
if (JSValueIsUndefined(context, encodedBundle) || JSValueIsNull(context, encodedBundle)) {
- LogError("encodedBundle"+converter->toString(encodedBundle));
+ LoggerE("encodedBundle"+converter->toString(encodedBundle));
return JSValueMakeNull(context);
}