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__)
|
2024-08-01 16:34:38 -04:00
|
|
|
#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__);
|
2024-08-01 16:34:38 -04:00
|
|
|
#define CFGLR_LOGD(TAG, STR, ...) print(TAG); printf(STR, ##__VA_ARGS__);
|
2024-07-31 15:51:12 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|