blob: a48d2e7be805ad552f6ab44e0b9d72aae72c1a46 [file] [log] [blame]
Roman Stratiienkod518a052021-02-25 19:15:14 +02001#ifndef UTILS_LOG_H_
2#define UTILS_LOG_H_
3
4#ifdef ANDROID
5
6#include <log/log.h>
7
8#else
9
Roman Stratiienkod21071f2021-03-09 21:56:50 +020010#include <cinttypes>
11#include <cstdio>
12
Roman Stratiienkod518a052021-02-25 19:15:14 +020013// 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