wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Messaging / ScopedMail.h
index 591a201..c8d2595 100644 (file)
 #ifndef TIZEN_MESSAGING_SCOPEDMAIL_H_
 #define TIZEN_MESSAGING_SCOPEDMAIL_H_
 
-#include <dpl/log/log.h>
 #include <dpl/scoped_ptr.h>
 #include <email-types.h>
 #include <email-api-mail.h>
+#include <Logger.h>
 
 namespace DeviceAPI {
 namespace Messaging {
@@ -32,18 +32,18 @@ struct ScopedMailPolicy
 
     static Type NullValue()
     {
-        LogDebug("NullValue");
+        LoggerD("NullValue");
         return NULL;
     }
 
     static void Destroy(Type mail)
     {
-          LogDebug("Destroy");
+          LoggerD("Destroy");
         if (NullValue() != mail) {
-                LogDebug("email_free_mail_data");
+                LoggerD("email_free_mail_data");
             int error = email_free_mail_data(&mail, 1);
             if (EMAIL_ERROR_NONE != error) {
-                LogError("Failed to destroy mail: " << error);
+                LoggerE("Failed to destroy mail: " << error);
             }
         }
     }