fix(sdk): App 退出日志兜底 — meow_ui_init 安装 SIGTERM/SIGINT 处理器(log_sig_exit: 直写 exit:sigterm 绕过缓冲+exit(0));修 watchdog 返回键杀 App 时日志只有 start 没有 exit 的问题;App 自装处理器(hello BYE)覆盖不受影响 + meow_ui.h 旧日志路径注释更正
meow_ui.a→049fa9db; hello→d0ac55cf; files→3b3bea05; launcher→4f223701; 宿主 widgets PASS
This commit is contained in:
1 parent
feb3df681c
commit
29e1b35da8
7 files changed
+30
-1
No files matched your search
@@ -692,7 +692,7 @@ void meow_sheet_free(meow_sheet *s);
|
||||
/* §9 应用日志(统一日志 API,M2.51 最小可用版) */
|
||||
/* ============================================================ */
|
||||
/* app 只需一行 meow_log();SDK 管「写哪/怎么写/过滤/降级/上限」:
|
||||
* - 路径:<MEOW_LOG_DIR>/apps/<MEOW_LOG_APP>/logs/<启动时间>_<pid>.log
|
||||
* - 路径:<MEOW_LOG_DIR>/<启动时间>_<pid>.log(MEOW_LOG_DIR 已含包名分层 logs/<包名>)
|
||||
* (目录不存在 mkdir -p,按 app 分目录),每次启动=新文件,同一次启动内 O_APPEND 追加;
|
||||
* - 级别过滤:lvl < meow_log_get_level() 丢弃;默认 MEOW_LOG_INFO;
|
||||
* - 格式:<monotonic_ms> [<app_id>] <LEVEL> message\n;
|
||||
|
||||
Reference in new issue
Block a user