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 | |
Roman Stratiienko | d21071f | 2021-03-09 21:56:50 +0200 | [diff] [blame^] | 10 | #include <cinttypes> |
| 11 | #include <cstdio> |
| 12 | |
Roman Stratiienko | d518a05 | 2021-02-25 19:15:14 +0200 | [diff] [blame] | 13 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 14 | #define ALOGE(args...) printf("ERR: " args) |
| 15 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 16 | #define ALOGW(args...) printf("WARN: " args) |
| 17 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 18 | #define ALOGI(args...) printf("INFO: " args) |
| 19 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 20 | #define ALOGD(args...) printf("DBG:" args) |
| 21 | // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) |
| 22 | #define ALOGV(args...) printf("VERBOSE: " args) |
| 23 | |
| 24 | #endif |
| 25 | |
| 26 | #endif |