diff options
Diffstat (limited to 'CommonLibs')
-rw-r--r-- | CommonLibs/Logger.h | 3 | ||||
-rw-r--r-- | CommonLibs/debug.c | 6 | ||||
-rw-r--r-- | CommonLibs/debug.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/CommonLibs/Logger.h b/CommonLibs/Logger.h index 5b0b05c..e18ecfb 100644 --- a/CommonLibs/Logger.h +++ b/CommonLibs/Logger.h @@ -53,6 +53,9 @@ extern "C" { #define LOGC(category, level) \ Log(category, LOGL_##level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] " +#define LOGLV(category, level) \ + Log(category, level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] " + /** A C++ stream-based thread-safe logger. This object is NOT the global logger; diff --git a/CommonLibs/debug.c b/CommonLibs/debug.c index e4db2f3..01854c0 100644 --- a/CommonLibs/debug.c +++ b/CommonLibs/debug.c @@ -10,6 +10,12 @@ static const struct log_info_cat default_categories[] = { .color = NULL, .enabled = 1, .loglevel = LOGL_NOTICE, }, + [DLMS] = { + .name = "DLMS", + .description = "LimeSuite category", + .color = NULL, + .enabled = 1, .loglevel = LOGL_NOTICE, + }, }; const struct log_info log_info = { diff --git a/CommonLibs/debug.h b/CommonLibs/debug.h index 7038f4c..06ad74e 100644 --- a/CommonLibs/debug.h +++ b/CommonLibs/debug.h @@ -5,4 +5,5 @@ extern const struct log_info log_info; /* Debug Areas of the code */ enum { DMAIN, + DLMS, }; |