Skip to content
Snippets Groups Projects
Commit 434ca2c5 authored by Florian Fischer's avatar Florian Fischer
Browse files

[Debug] introduce LOGGER_{LOGI,LOGW,LOGW} for Logger objects

parent 79f6eb9f
No related branches found
No related tags found
1 merge request!136Fix submit of invalid Future chains
...@@ -38,10 +38,19 @@ ...@@ -38,10 +38,19 @@
// NOLINTNEXTLINE(bugprone-macro-parentheses) // NOLINTNEXTLINE(bugprone-macro-parentheses)
#define LOGI(x) LOG(Info, "Info: " << x, emper_log_no_prefix, true); #define LOGI(x) LOG(Info, "Info: " << x, emper_log_no_prefix, true);
// NOLINTNEXTLINE(bugprone-macro-parentheses)
#define LOGGER_LOGI(x) LOG(Info, "Info: " << x, this->logI, true);
// NOLINTNEXTLINE(bugprone-macro-parentheses) // NOLINTNEXTLINE(bugprone-macro-parentheses)
#define LOGW(x) LOG(Warning, "Warning: " << x, emper_log_no_prefix, true); #define LOGW(x) LOG(Warning, "Warning: " << x, emper_log_no_prefix, true);
// NOLINTNEXTLINE(bugprone-macro-parentheses)
#define LOGGER_LOGW(x) LOG(Warning, "Warning: " << x, this->logW, true);
// NOLINTNEXTLINE(bugprone-macro-parentheses) // NOLINTNEXTLINE(bugprone-macro-parentheses)
#define LOGE(x) LOG(Error, "Error: " << x, emper_log_no_prefix, true); #define LOGE(x) LOG(Error, "Error: " << x, emper_log_no_prefix, true);
// NOLINTNEXTLINE(bugprone-macro-parentheses)
#define LOGGER_LOGE(x) LOG(Error, "Error: " << x, emper_log_no_prefix, true);
// NOLINTNEXTLINE(bugprone-macro-parentheses) // NOLINTNEXTLINE(bugprone-macro-parentheses)
#define ABORT(x) { LOGE(x); abort(); } #define ABORT(x) { LOGE(x); abort(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment