tizen 2.4 release
[framework/web/wrt-commons.git] / modules / core / src / scoped_dir.cpp
similarity index 92%
rename from modules_mobile/core/src/scoped_dir.cpp
rename to modules/core/src/scoped_dir.cpp
index 96550e6..11f6c3f 100644 (file)
@@ -21,7 +21,7 @@
  */
 #include <dpl/scoped_dir.h>
 #include <dpl/errno_string.h>
-#include <dpl/log/log.h>
+#include <dpl/log/wrt_log.h>
 
 #include <fts.h>
 #include <sys/types.h>
@@ -90,7 +90,7 @@ void ScopedDirPolicy::Destroy(Type str)
         bool status = removeRecusive(str.c_str());
         if(!status)
         {
-            LogError("Error while removing recursively: " << str);
+            WrtLogE("Error while removing recursively: %s", str.c_str());
         }
     }
 }
@@ -102,8 +102,8 @@ ScopedDir::ScopedDir(const std::string & str, mode_t mode) : BaseType(str)
         if (mkdir(str.c_str(), mode) == -1)
         {
             std::string errstr = DPL::GetErrnoString();
-            LogError("Error while creating directory: " << str
-                     << " [" << errstr << "]");
+            WrtLogE("Error while creating directory: %s [%s]",
+                str.c_str(), errstr.c_str());
         }
     }
 }