[FL-1147] System logging (#434)

* furi_log: introduce log system
* applications: rework with furi logging
* furi_log: reset color after tag printed
* core: add log info

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
gornekich
2021-04-30 14:20:33 +03:00
committed by GitHub
parent b90d72fadf
commit dd9bd224be
10 changed files with 189 additions and 35 deletions

View File

@@ -58,6 +58,7 @@ void app_loader_thread_state_callback(FuriThreadState state, void* context) {
}
int32_t app_loader(void* p) {
FURI_LOG_I("APPLOADER", "Started");
state.thread = furi_thread_alloc();
furi_thread_set_state_context(state.thread, &state);
furi_thread_set_state_callback(state.thread, app_loader_thread_state_callback);
@@ -153,7 +154,7 @@ int32_t app_loader(void* p) {
menu_item_add(menu, menu_debug);
});
printf("[app loader] start\r\n");
FURI_LOG_I("APPLOADER", "OK");
while(1) {
osThreadSuspend(osThreadGetId());