• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include <cinttypes>
11 #include <cstdio>
12 
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