NavigationLogger class
专门的导航日志管理器 统一处理所有导航相关的日志记录和格式化
Properties
Methods
-
clearLogs(
) → void - 清空导航日志
-
exportRecentLogs(
{int? limit}) → List< Map< String, dynamic> > - 导出最近的导航日志
- 获取导航流程分析
- 获取导航日志统计
-
logContainerAction(
{required String action, required String fromPage, bool forceFinish = false, Map< String, dynamic> ? params, Map<String, dynamic> ? metadata}) → void - 记录容器操作(关闭/强制关闭)
- 记录Flutter页面导航
- 记录原生页面导航
-
logStackOperation(
{required String action, String? fromPage, String? toPage, List< String> ? stackPages, Map<String, dynamic> ? metadata}) → void - 记录路由栈操作
- 记录WebView导航
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
searchLogs(
{String? action, String? fromPage, String? toPage, DateTime? startTime, DateTime? endTime}) → List< Map< String, dynamic> > - 搜索导航日志
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → NavigationLogger
-
no setter
Constants
- maxLogCount → const int
- 最大保存的日志数量