9#define LOG_ICACHE_FLASH ICACHE_FLASH_ATTR
13#undef LOG_ICACHE_FLASH
16#ifndef LOG_ICACHE_FLASH
17#define LOG_ICACHE_FLASH
20#if defined(ESP8266) || defined(__AVR__) || defined(_WIN32) || \
21 defined(ESP32) || defined(SUPLA_DEVICE) || defined(SUPLA_TEST)
45typedef int (*_supla_log_callback)(
int __pri,
const char *message);
47void LOG_ICACHE_FLASH supla_log_set_callback(_supla_log_callback callback);
50void LOG_ICACHE_FLASH supla_log_set_level(
int level);
51int LOG_ICACHE_FLASH supla_log_get_level(
void);
52char LOG_ICACHE_FLASH supla_log_is_enabled(
int level);
53void LOG_ICACHE_FLASH supla_log(
int __pri,
const char *__fmt, ...);
54void LOG_ICACHE_FLASH supla_write_state_file(
const char *file,
int __pri,
55 const char *__fmt, ...);