aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs/Logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'CommonLibs/Logger.h')
-rw-r--r--CommonLibs/Logger.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/CommonLibs/Logger.h b/CommonLibs/Logger.h
index ab72303..6452e25 100644
--- a/CommonLibs/Logger.h
+++ b/CommonLibs/Logger.h
@@ -50,16 +50,19 @@ extern "C" {
#endif
#define LOG(level) \
- Log(DMAIN, LOGL_##level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] "
+ Log(DMAIN, LOGL_##level, __BASE_FILE__, __LINE__).get()
#define LOGC(category, level) \
- Log(category, LOGL_##level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] "
+ Log(category, LOGL_##level, __BASE_FILE__, __LINE__).get()
#define LOGLV(category, level) \
- Log(category, level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] "
+ Log(category, level, __BASE_FILE__, __LINE__).get()
+
+#define LOGSRC(category, level, file, line) \
+ Log(category, level, file, line).get()
#define LOGCHAN(chan, category, level) \
- Log(category, LOGL_##level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "][chan=" << chan << "] "
+ Log(category, LOGL_##level, __BASE_FILE__, __LINE__).get() << "[chan=" << chan << "] "
/**
A C++ stream-based thread-safe logger.