projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
356b388
)
Fix file name to short version
author
WonYoung Choi
<wy80.choi@samsung.com>
Fri, 8 May 2015 08:14:26 +0000
(17:14 +0900)
committer
WonYoung Choi
<wy80.choi@samsung.com>
Fri, 8 May 2015 08:14:26 +0000
(17:14 +0900)
Change-Id: I8c93f57d65c1ee1dba1a9ce3aecf253e8578fdcd
src/common/logger.h
patch
|
blob
|
history
diff --git
a/src/common/logger.h
b/src/common/logger.h
index
7d59ef2
..
50f0eab
100644
(file)
--- 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, \
- __
FI
LE__, __FUNCTION__, __LINE__).stream()
+ __
MODU
LE__, __FUNCTION__, __LINE__).stream()
#endif // WRT_COMMON_LOGGER_H_