Log style is changed to SECURE_LOG
authorHoseon LEE <hoseon46.lee@samsung.com>
Tue, 11 Jun 2013 04:43:22 +0000 (13:43 +0900)
committerJihoon Chung <jihoon.chung@samsung.com>
Thu, 13 Jun 2013 14:05:56 +0000 (23:05 +0900)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Log stryle is changed to SECURE_LOG
[SCMRequest] N/A

Change-Id: I57048730cd2e161067619cd8f35cbe44321c54e6

modules/log/src/dlog_log_provider.cpp

index 943369f..573ee89 100644 (file)
@@ -57,8 +57,13 @@ void DLOGLogProvider::Debug(const char *message,
                             int line,
                             const char *function)
 {
+#ifdef SECURE_LOG
+    SECURE_LOG(LOG_DEBUG, m_tag.Get(), "%s",
+        FormatMessage(message, filename, line, function).c_str());
+#else
     LOG(LOG_DEBUG, m_tag.Get(), "%s",
         FormatMessage(message, filename, line, function).c_str());
+#endif
 }
 
 void DLOGLogProvider::Info(const char *message,
@@ -66,8 +71,13 @@ void DLOGLogProvider::Info(const char *message,
                            int line,
                            const char *function)
 {
+#ifdef SECURE_LOG
+    SECURE_LOG(LOG_INFO, m_tag.Get(), "%s",
+        FormatMessage(message, filename, line, function).c_str());
+#else
     LOG(LOG_INFO, m_tag.Get(), "%s",
         FormatMessage(message, filename, line, function).c_str());
+#endif
 }
 
 void DLOGLogProvider::Warning(const char *message,
@@ -75,8 +85,13 @@ void DLOGLogProvider::Warning(const char *message,
                               int line,
                               const char *function)
 {
+#ifdef SECURE_LOG
+    SECURE_LOG(LOG_WARN, m_tag.Get(), "%s",
+        FormatMessage(message, filename, line, function).c_str());
+#else
     LOG(LOG_WARN, m_tag.Get(), "%s",
         FormatMessage(message, filename, line, function).c_str());
+#endif
 }
 
 void DLOGLogProvider::Error(const char *message,
@@ -84,8 +99,13 @@ void DLOGLogProvider::Error(const char *message,
                             int line,
                             const char *function)
 {
+#ifdef SECURE_LOG
+    SECURE_LOG(LOG_ERROR, m_tag.Get(), "%s",
+        FormatMessage(message, filename, line, function).c_str());
+#else
     LOG(LOG_ERROR, m_tag.Get(), "%s",
         FormatMessage(message, filename, line, function).c_str());
+#endif
 }
 
 void DLOGLogProvider::Pedantic(const char *message,
@@ -93,10 +113,17 @@ void DLOGLogProvider::Pedantic(const char *message,
                                int line,
                                const char *function)
 {
+#ifdef SECURE_LOG
+    SECURE_LOG(LOG_DEBUG, "DPL", "%s", FormatMessage(message,
+                                              filename,
+                                              line,
+                                              function).c_str());
+#else
     LOG(LOG_DEBUG, "DPL", "%s", FormatMessage(message,
                                               filename,
                                               line,
                                               function).c_str());
+#endif
 }
 }
 } // namespace DPL