From: Hoseon LEE Date: Tue, 11 Jun 2013 04:43:22 +0000 (+0900) Subject: Log style is changed to SECURE_LOG X-Git-Tag: submit/tizen_2.2/20130927.091100^2~73 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69bbb46e3883ab187f73b18f18fb0907956a0ac0;p=platform%2Fframework%2Fweb%2Fwrt-commons.git 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 --- 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