wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Filesystem / Stream.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 64098b8..cb95fa5
@@ -26,6 +26,7 @@
 #include <Commons/Exception.h>
 #include "Manager.h"
 #include "Node.h"
+#include <Logger.h>
 
 using namespace WrtDeviceApis;
 using namespace WrtDeviceApis::Commons;
@@ -255,7 +256,7 @@ IStreamPtr Stream::write_(T arg)
     checkForWriting();
 
     if (!(m_stream << arg)) {
-        LogError("Error while writing to the stream.");
+        LoggerE("Error while writing to the stream.");
         ThrowMsg(Commons::PlatformException,
                  "Error while writing to the stream.");
     }
@@ -305,12 +306,12 @@ void Stream::checkForReading() const
 void Stream::checkForWriting() const
 {
     if (!isOpen()) {
-        LogError("Stream is closed.");
+        LoggerE("Stream is closed.");
         ThrowMsg(Commons::PlatformException, "Stream is closed.");
     }
 
     if (!isWriteable()) {
-        LogError("Stream is not writeable.");
+        LoggerE("Stream is not writeable.");
         ThrowMsg(Commons::PlatformException, "Stream is not writeable.");
     }
 }