完成封装打印和推送功能日志方法和使用

完成添加绑定设备接口的日志便于追溯
This commit is contained in:
2026-03-04 16:33:56 +08:00
parent fcfdb2c78c
commit 786d11c936
6 changed files with 239 additions and 25 deletions

View File

@@ -6,6 +6,11 @@ abstract class ILoggerService {
bool isWarning = false,
Map<String, dynamic>? data,
});
void logWithLevel(
String message, {
String level = 'INFO', // 'DEBUG', 'INFO', 'WARNING', 'ERROR'
Map<String, dynamic>? data,
});
void addBreadcrumb(String message, {String? category});
void setUser(String userId);
}