This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/examples/bflog/barebone_sync/log_test.c
jzlv 356f258e83 [sync] sync from internal repo
* use nuttx libc, disable system libc
* use tlsf as default
* update lhal flash driver
* add example readme
* add flash ini for new flash tool
* add fw header for new flash tool
2023-01-17 21:04:07 +08:00

19 lines
618 B
C

#define DBG_TAG "TEST"
#include "bflog.h"
BFLOG_DEFINE_TAG(TEST, DBG_TAG, true);
#undef BFLOG_TAG
#define BFLOG_TAG BFLOG_GET_TAG(TEST)
extern bflog_t example_recorder;
void test_log(void)
{
BFLOG_F(&example_recorder, "hello test this is fatal error\r\n");
BFLOG_E(&example_recorder, "hello test this is error\r\n");
BFLOG_W(&example_recorder, "hello test this is warning\r\n");
BFLOG_I(&example_recorder, "hello test this is information\r\n");
BFLOG_D(&example_recorder, "hello test this is degug information\r\n");
BFLOG_T(&example_recorder, "hello test this is trace information\r\n");
}