Loading...
Searching...
No Matches
32#define LOG_VERSION_V3 3
34#define LOG_TYPE_STREAM (0)
35#define LOG_TYPE_MEMORY (1)
36#define LOG_TYPE_STORAGE (2)
38#define LOG_LEVEL_DEBUG (0)
39#define LOG_LEVEL_INFO (1)
40#define LOG_LEVEL_WARN (2)
41#define LOG_LEVEL_ERROR (3)
42#define LOG_LEVEL_CRITICAL (4)
43#define LOG_LEVEL_NONE (5)
45#define LOG_LEVEL_MAX (15)
47#define LOG_LEVEL_STR(level) \
48 (LOG_LEVEL_DEBUG == level ? "DEBUG" :\
49 (LOG_LEVEL_INFO == level ? "INFO" :\
50 (LOG_LEVEL_WARN == level ? "WARN" :\
51 (LOG_LEVEL_ERROR == level ? "ERROR" :\
52 (LOG_LEVEL_CRITICAL == level ? "CRITICAL" :\
59#define LOG_MODULE_DEFAULT 0
60#define LOG_MODULE_OS 1
61#define LOG_MODULE_NEWTMGR 2
62#define LOG_MODULE_NIMBLE_CTLR 3
63#define LOG_MODULE_NIMBLE_HOST 4
64#define LOG_MODULE_NFFS 5
65#define LOG_MODULE_REBOOT 6
66#define LOG_MODULE_IOTIVITY 7
67#define LOG_MODULE_TEST 8
69#define LOG_MODULE_PERUSER 64
70#define LOG_MODULE_MAX (255)
72#define LOG_ETYPE_STRING (0)
73#define LOG_ETYPE_CBOR (1)
74#define LOG_ETYPE_BINARY (2)
77#define UTC01_01_2016 1451606400
79#define LOG_NAME_MAX_LEN (64)
81#ifndef MYNEWT_VAL_LOG_LEVEL
82#define LOG_SYSLEVEL ((uint8_t)LOG_LEVEL_MAX)
84#define LOG_SYSLEVEL ((uint8_t)MYNEWT_VAL_LOG_LEVEL)
100#define LOG_MOD_LEVEL_IS_ACTIVE(mod_level, entry_level) \
101 (LOG_LEVEL <= (entry_level) && (mod_level) <= (entry_level))
104#define LOGS_NMGR_OP_READ (0)
105#define LOGS_NMGR_OP_CLEAR (1)
106#define LOGS_NMGR_OP_APPEND (2)
107#define LOGS_NMGR_OP_MODULE_LIST (3)
108#define LOGS_NMGR_OP_LEVEL_LIST (4)
109#define LOGS_NMGR_OP_LOGS_LIST (5)
110#define LOGS_NMGR_OP_SET_WATERMARK (6)
111#define LOGS_NMGR_OP_MODLEVEL (8)
113#define LOG_PRINTF_MAX_ENTRY_LEN (128)
117#if MYNEWT_VAL(LOG_GLOBAL_IDX)
118 uint32_t li_next_index;
123extern struct log_info g_log_info;
132typedef void log_append_cb(
struct log *log, uint32_t idx);
139typedef void log_notify_rotate_cb(
const struct log *log);