configulator/include/cfglr_log.h

17 lines
416 B
C
Raw Normal View History

2024-07-31 15:51:12 -04:00
#ifndef _CFGLR_LOG_H_
#define _CFGLR_LOG_H_
#ifdef ESP_PLATFORM
#include "esp_log.h"
#include "cfglr_nvs.h"
#define CFGLR_LOGI(TAG, STR, ...) ESP_LOGI(TAG, STR, ##__VA_ARGS__)
#define CFGLR_LOGD(TAG, STR, ...) ESP_LOGD(TAG, STR, ##__VA_ARGS__)
2024-07-31 15:51:12 -04:00
#else
#define CFGLR_LOGI(TAG, STR, ...) print(TAG); printf(STR, ##__VA_ARGS__);
#define CFGLR_LOGD(TAG, STR, ...) print(TAG); printf(STR, ##__VA_ARGS__);
2024-07-31 15:51:12 -04:00
#endif
#endif