openHiTLS API openHiTLS 0.1.0-Alpha1
结构体 | 宏定义 | 类型定义 | 函数
Bsl_log

log module 更多...

Bsl_log 的协作图:

结构体

struct  BSL_LOG_BinLogFuncs
 Register the parameter type of the binlog callback function. 更多...
 

宏定义

#define BSL_LOG_LEVEL_SEC   0U
 
#define BSL_LOG_LEVEL_FATAL   1U
 
#define BSL_LOG_LEVEL_ERR   2U
 
#define BSL_LOG_LEVEL_WARN   3U
 
#define BSL_LOG_LEVEL_INFO   4U
 
#define BSL_LOG_LEVEL_DEBUG   5U
 
#define OPENHITLS_VERSION_S   "openHiTLS 0.1.0 25 12 2023"
 
#define BSL_LOG_BINLOG_TYPE_RUN   0x01
 Binlog type, other types can be extended.
 

类型定义

typedef void(* BSL_LOG_BinLogFixLenFunc) (uint32_t logId, uint32_t logLevel, uint32_t logType, void *format, void *para1, void *para2, void *para3, void *para4)
 Fixed-length callback type of binlogs.
 
typedef void(* BSL_LOG_BinLogVarLenFunc) (uint32_t logId, uint32_t logLevel, uint32_t logType, void *format, void *para)
 Callback type for variable-length binlogs.
 

函数

int32_t BSL_LOG_GetVersion (char *version, uint32_t *versionLen)
 Obtain the openHiTLS version string.
 
uint32_t BSL_LOG_GetVersionNum (void)
 Obtain the openHiTLS version number.
 
int32_t BSL_LOG_RegBinLogFunc (const BSL_LOG_BinLogFuncs *funcs)
 Set the fixed-length and variable-length callback function for binlogs.
 
int32_t BSL_LOG_SetBinLogLevel (uint32_t level)
 Set the level of binlogs.
 
uint32_t BSL_LOG_GetBinLogLevel (void)
 Obtain the level of binlogs.
 

详细描述

log module