summaryrefslogtreecommitdiff
path: root/AudioManagerUtilities/include/CAmDltWrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'AudioManagerUtilities/include/CAmDltWrapper.h')
-rw-r--r--AudioManagerUtilities/include/CAmDltWrapper.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/AudioManagerUtilities/include/CAmDltWrapper.h b/AudioManagerUtilities/include/CAmDltWrapper.h
index 8c2b514..a37ec77 100644
--- a/AudioManagerUtilities/include/CAmDltWrapper.h
+++ b/AudioManagerUtilities/include/CAmDltWrapper.h
@@ -158,6 +158,18 @@ public:
bool init(DltLogLevelType loglevel, DltContext* context = NULL);
+ bool checkLogLevel(DltLogLevelType logLevel)
+ {
+#ifdef WITH_DLT
+ #if (DLT_MAJOR_VERSION >= 2 && DLT_MINOR_VERSION >= 16)
+ return (1 == dlt_user_is_logLevel_enabled(&mDltContext,logLevel)? true: false);
+ #else
+ return false;
+ #endif
+#else
+ return (logLevel <= mDltContext.log_level_user);
+#endif
+ }
void deinit();
void send();
void append(const int8_t value);