aboutsummaryrefslogtreecommitdiff
path: root/utils/log.h
blob: a48d2e7be805ad552f6ab44e0b9d72aae72c1a46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef UTILS_LOG_H_
#define UTILS_LOG_H_

#ifdef ANDROID

#include <log/log.h>

#else

#include <cinttypes>
#include <cstdio>

// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define ALOGE(args...) printf("ERR: " args)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define ALOGW(args...) printf("WARN: " args)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define ALOGI(args...) printf("INFO: " args)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define ALOGD(args...) printf("DBG:" args)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define ALOGV(args...) printf("VERBOSE: " args)

#endif

#endif