2021-01-07 19:01:08 +08:00
|
|
|
/*
|
|
|
|
* @Description:
|
|
|
|
* @Date: 2020-12-22 18:27:24
|
|
|
|
* @LastEditors: CK.Zh
|
|
|
|
* @LastEditTime: 2021-01-07 17:50:39
|
|
|
|
* @FilePath: \NaviKit_stm32\Middlewares\Log\log.h
|
|
|
|
*/
|
2020-12-17 18:22:19 +08:00
|
|
|
/*
|
|
|
|
* log.h
|
|
|
|
*
|
|
|
|
* Created on: Dec 16, 2020
|
|
|
|
* Author: bookshiyi
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LOG_LOG_H_
|
|
|
|
#define LOG_LOG_H_
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
2021-01-07 19:01:08 +08:00
|
|
|
#include <stdbool.h>
|
2020-12-17 18:22:19 +08:00
|
|
|
|
|
|
|
typedef enum {
|
2021-01-05 14:46:47 +08:00
|
|
|
trace = 0,
|
|
|
|
debug = 1,
|
|
|
|
info = 2,
|
|
|
|
warning = 3,
|
|
|
|
error = 4,
|
|
|
|
fatal =5
|
2020-12-17 18:22:19 +08:00
|
|
|
}LogLevel_t;
|
|
|
|
|
2021-01-07 19:01:08 +08:00
|
|
|
typedef enum {
|
|
|
|
sys = 0,//system:board device and ec device
|
|
|
|
som = 1,//system on module: jetson nano
|
|
|
|
pmb = 2,//power manage board
|
|
|
|
}LogPositon_t;
|
|
|
|
|
|
|
|
void Log(LogLevel_t level,LogPositon_t positon,char *format, ...);
|
2020-12-17 18:22:19 +08:00
|
|
|
#endif /* LOG_LOG_H_ */
|