From: WonYoung Choi Date: Fri, 8 May 2015 08:14:26 +0000 (+0900) Subject: Fix file name to short version X-Git-Tag: accepted/tizen/mobile/20151006.042140~76^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3ce895c05cfe2acf174863ebdf90cc4f6203fe5;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Fix file name to short version Change-Id: I8c93f57d65c1ee1dba1a9ce3aecf253e8578fdcd --- diff --git a/src/common/logger.h b/src/common/logger.h index 7d59ef2..50f0eab 100644 --- a/src/common/logger.h +++ b/src/common/logger.h @@ -56,10 +56,15 @@ class LogMessage { } // namespace utils } // namespace wrt +#ifndef __MODULE__ +#define __MODULE__ \ + (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) +#endif + #define LOGGER(severity) \ wrt::utils::LogMessageVodify() & \ wrt::utils::LogMessage(DLOG_ ## severity, \ - __FILE__, __FUNCTION__, __LINE__).stream() + __MODULE__, __FUNCTION__, __LINE__).stream() #endif // WRT_COMMON_LOGGER_H_