mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-06 12:58:45 +00:00
[update][utils] update api
This commit is contained in:
parent
011ffb8821
commit
b53a02f2c9
11 changed files with 457 additions and 146 deletions
|
@ -28,7 +28,7 @@
|
|||
#include "bflog.h"
|
||||
|
||||
/*!< param check enable */
|
||||
#define BFLOG_DEBUG_ENABLE
|
||||
#define CONFIG_BFLOG_DEBUG
|
||||
|
||||
/*!< log enable */
|
||||
#define BFLOG_ENABLE
|
||||
|
|
|
@ -64,12 +64,12 @@ void bflog_restart(void)
|
|||
void *direct0 = (void *)&bflog_direct_filetime;
|
||||
void *direct1 = (void *)&bflog_direct_filesize;
|
||||
|
||||
bflog_direct_create(direct0, BFLOG_DIRECT_TYPE_FILE_TIME, BFLOG_DIRECT_COLOR_DISABLE);
|
||||
bflog_direct_init_file_time(direct0, "sd:/log/common", 60, 42, NULL, NULL);
|
||||
bflog_direct_create(direct0, BFLOG_DIRECT_TYPE_FILE_TIME, BFLOG_DIRECT_COLOR_DISABLE, NULL, NULL);
|
||||
bflog_direct_init_file_time_s(direct0, "sd:/log/common", 60, 42);
|
||||
|
||||
bflog_direct_create(direct1, BFLOG_DIRECT_TYPE_FILE_SIZE, BFLOG_DIRECT_COLOR_DISABLE);
|
||||
bflog_direct_init_file_size(direct1, "sd:/log/error", 128 * 1024, 16, NULL, NULL);
|
||||
bflog_direct_control(direct1, BFLOG_DIRECT_CMD_LEVEL, BFLOG_LEVEL_WARN);
|
||||
bflog_direct_create(direct1, BFLOG_DIRECT_TYPE_FILE_SIZE, BFLOG_DIRECT_COLOR_DISABLE, NULL, NULL);
|
||||
bflog_direct_init_file_size_s(direct1, "sd:/log/error", 128 * 1024, 16);
|
||||
bflog_direct_control_s(direct1, BFLOG_DIRECT_CMD_LEVEL, BFLOG_LEVEL_WARN);
|
||||
|
||||
/*!< suspend record */
|
||||
bflog_suspend_s(record);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue