wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Filesystem / plugin_initializer.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 6febfa2..16b2b46
@@ -15,8 +15,6 @@
 // limitations under the License.
 //
 
-
-#include <dpl/log/log.h>
 #include <Commons/WrtAccess/WrtAccess.h>
 #include <Commons/plugin_initializer_def.h>
 #include <TimeTracer.h>
@@ -25,6 +23,7 @@
 #include "JSFilestream.h"
 #include "FilesystemAsyncCallbackManager.h"
 #include "FilesystemListenerManager.h"
+#include <Logger.h>
 
 using namespace WrtDeviceApis;
 using namespace WrtDeviceApis::Commons;
@@ -38,7 +37,7 @@ void on_widget_start_callback(int widgetId)
        Try {
         WrtAccessSingleton::Instance().initialize(widgetId);
        } Catch (Commons::Exception) {
-               LogError("WrtAccess initialization failed");
+               LoggerE("WrtAccess initialization failed");
        }
 }
 
@@ -49,20 +48,20 @@ void on_widget_stop_callback(int widgetId)
        Try {
         WrtAccessSingleton::Instance().deinitialize(widgetId);
        } Catch (Commons::Exception) {
-               LogError("WrtAccess deinitialization failed");
+               LoggerE("WrtAccess deinitialization failed");
        }
 }
 
 void on_frame_unload_callback(const void * context)
 {
-       LogDebug("[Tizen\\filesystem] on_frame_unload_callback (" << context << ")");
+       LoggerD("[Tizen\\filesystem] on_frame_unload_callback (" << context << ")");
        DeviceAPI::Filesystem::FilesystemAsyncCallbackManagerSingleton::Instance().unregisterContext(static_cast<JSContextRef>(context));
        DeviceAPI::Filesystem::FilesystemListenerManagerSingleton::Instance().unregisterContext(static_cast<JSContextRef>(context));
 }
 
 void on_frame_load_callback(const void * context)
 {
-       LogDebug("[Tizen\\filesystem] on_frame_load_callback (" << context << ")");
+       LoggerD("[Tizen\\filesystem] on_frame_load_callback (" << context << ")");
 }
 
 PLUGIN_ON_WIDGET_START(on_widget_start_callback)