// limitations under the License.
//
-
-#include <dpl/log/log.h>
#include <Commons/plugin_initializer_def.h>
#include <Commons/WrtAccess/WrtAccess.h>
#include <Commons/Exception.h>
#include "JSCallHistory.h"
#include "CallHistoryAsyncCallbackManager.h"
#include "CallHistoryListenerManager.h"
+#include <Logger.h>
#define CALLHISTORY "callhistory"
using namespace WrtDeviceApis::CommonsJavaScript;
void on_widget_start_callback(int widgetId) {
- LogDebug("[Tizen\\callhistory] on_widget_start_callback (" << widgetId << ")");
+ LoggerD("[Tizen\\callhistory] on_widget_start_callback (" << widgetId << ")");
TIME_TRACER_INIT();
try {
WrtAccessSingleton::Instance().initialize(widgetId);
} catch(WrtDeviceApis::Commons::Exception) {
- LogError("WrtAccess initialization failed");
+ LoggerE("WrtAccess initialization failed");
}
}
void on_widget_stop_callback(int widgetId) {
- LogDebug("[Tizen\\callhistory] on_widget_stop_callback (" << widgetId << ")");
+ LoggerD("[Tizen\\callhistory] on_widget_stop_callback (" << widgetId << ")");
TIME_TRACER_EXPORT_REPORT_TO(TIME_TRACER_EXPORT_FILE,"CallHistory");
TIME_TRACER_RELEASE();
try {
WrtAccessSingleton::Instance().deinitialize(widgetId);
} catch(WrtDeviceApis::Commons::Exception) {
- LogError("WrtAccess deinitialization failed");
+ LoggerE("WrtAccess deinitialization failed");
}
}
void on_frame_load_callback(const void * context)
{
- LogDebug("[Tizen\\callhistory] on_frame_load_callback (" << context << ")");
+ LoggerD("[Tizen\\callhistory] on_frame_load_callback (" << context << ")");
}
void on_frame_unload_callback(const void * context)
{
- LogDebug("[Tizen\\callhistory] on_frame_unload_callback (" << context << ")");
+ LoggerD("[Tizen\\callhistory] on_frame_unload_callback (" << context << ")");
DeviceAPI::CallHistory::CallHistoryAsyncCallbackManagerSingleton::Instance().unregisterContext(static_cast<JSContextRef>(context));
DeviceAPI::CallHistory::CallHistoryListenerManagerSingleton::Instance().unregisterContext(static_cast<JSContextRef>(context));