diff options
Diffstat (limited to 'CommonLibs/Logger.h')
-rw-r--r-- | CommonLibs/Logger.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CommonLibs/Logger.h b/CommonLibs/Logger.h index e18ecfb..9c665cd 100644 --- a/CommonLibs/Logger.h +++ b/CommonLibs/Logger.h @@ -56,6 +56,9 @@ extern "C" { #define LOGLV(category, level) \ Log(category, level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] " +#define LOGCHAN(chan, category, level) \ + Log(category, LOGL_##level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "][chan=" << chan << "] " + /** A C++ stream-based thread-safe logger. This object is NOT the global logger; |