From 3ccf1c682d31e453d356e4b902d8aebce3f376a1 Mon Sep 17 00:00:00 2001 From: Lutz Bichler Date: Mon, 29 Jun 2020 15:14:50 +0200 Subject: vsomeip 3.1.15.1 --- implementation/logger/src/message.cpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'implementation/logger/src/message.cpp') diff --git a/implementation/logger/src/message.cpp b/implementation/logger/src/message.cpp index 363db37..e4a902f 100644 --- a/implementation/logger/src/message.cpp +++ b/implementation/logger/src/message.cpp @@ -10,7 +10,11 @@ #include #ifdef ANDROID -#include +#include + +#ifndef LOG_TAG +#define LOG_TAG NULL +#endif #endif #include @@ -90,25 +94,25 @@ message::~message() { #else switch (level_) { case level_e::LL_FATAL: - ALOGE(buffer_.data_.str()); + (void)__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, "%s", buffer_.data_.str().c_str()); break; case level_e::LL_ERROR: - ALOGE(buffer_.data_.str()); + (void)__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, "%s", buffer_.data_.str().c_str()); break; case level_e::LL_WARNING: - ALOGW(buffer_.data_.str()); + (void)__android_log_print(ANDROID_LOG_WARN, LOG_TAG, "%s", buffer_.data_.str().c_str()); break; case level_e::LL_INFO: - ALOGI(buffer_.data_.str()); + (void)__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "%s", buffer_.data_.str().c_str()); break; case level_e::LL_DEBUG: - ALOGD(buffer_.data_.str()); + (void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, "%s", buffer_.data_.str().c_str()); break; case level_e::LL_VERBOSE: - ALOGV(buffer_.data_.str()); + (void)__android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, "%s", buffer_.data_.str().c_str()); break; default: - ALOGI(buffer_.data_.str()); + (void)__android_log_print(ANDROID_LOG_INFO, LOG_TAG, "%s", buffer_.data_.str().c_str()); }; #endif // !ANDROID } -- cgit v1.2.1