Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
include
ersa
common
logging.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdio.h>
4
5
#if defined(ARDUINO)
6
#include "
core/debug_log.h
"
7
#define ERSA_LOG_INFO(fmt, ...) DebugLog::log(fmt, ##__VA_ARGS__)
8
#define ERSA_LOG_WARN(fmt, ...) DebugLog::log("[WARN] " fmt, ##__VA_ARGS__)
9
#define ERSA_LOG_ERROR(fmt, ...) DebugLog::log("[ERROR] " fmt, ##__VA_ARGS__)
10
#else
11
#define ERSA_LOG_INFO(fmt, ...) printf("[INFO] " fmt "\n", ##__VA_ARGS__)
12
#define ERSA_LOG_WARN(fmt, ...) printf("[WARN] " fmt "\n", ##__VA_ARGS__)
13
#define ERSA_LOG_ERROR(fmt, ...) fprintf(stderr, "[ERROR] " fmt "\n", ##__VA_ARGS__)
14
#endif
debug_log.h
Generated by
1.9.8