Roman Stratiienko | d518a05 | 2021-02-25 19:15:14 +0200 | [diff] [blame] | 1 | #ifndef UTILS_LOG_H_ |
| 2 | #define UTILS_LOG_H_ |
| 3 | |
| 4 | #ifdef ANDROID |
| 5 | |
| 6 | #include <log/log.h> |
| 7 | |
| 8 | #else |
| 9 | |
| 10 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 11 | #define ALOGE(args...) printf("ERR: " args) |
| 12 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 13 | #define ALOGW(args...) printf("WARN: " args) |
| 14 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 15 | #define ALOGI(args...) printf("INFO: " args) |
| 16 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 17 | #define ALOGD(args...) printf("DBG:" args) |
| 18 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 19 | #define ALOGV(args...) printf("VERBOSE: " args) |
| 20 | |
| 21 | #endif |
| 22 | |
| 23 | #endif |