From 69bbb46e3883ab187f73b18f18fb0907956a0ac0 Mon Sep 17 00:00:00 2001 From: Hoseon LEE Date: Tue, 11 Jun 2013 13:43:22 +0900 Subject: [PATCH] Log style is changed to SECURE_LOG [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 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/modules/log/src/dlog_log_provider.cpp b/modules/log/src/dlog_log_provider.cpp index 943369f..573ee89 100644 --- a/modules/log/src/dlog_log_provider.cpp +++ b/modules/log/src/dlog_log_provider.cpp @@ -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 -- 2.34.1