- Removed CrashReporter interface and its implementation, SentryCrashReporter. - Deleted log buffering functionality and associated LogBuffer class. - Updated LoggerAppLogger to eliminate dependencies on removed components. - Simplified logging structure to focus on AppLogger and sensitive data scrubbing. - Adjusted AppEnv to remove Sentry-related configurations. - Refactored tests to align with the new logging architecture.
16 lines
518 B
Dart
16 lines
518 B
Dart
/// core_logging 的 Riverpod 接线。
|
|
library;
|
|
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
import 'app_logger.dart';
|
|
|
|
/// 全局日志入口。
|
|
///
|
|
/// 默认是 [NoopAppLogger]——真实实现需要 `AppEnv`,由 `app/` 的 `bootstrap()`
|
|
/// 在拿到环境配置后 override。这样保证:即使某个测试忘了 override,
|
|
/// 也只是没有日志,而不是启动就抛异常。
|
|
final Provider<AppLogger> appLoggerProvider = Provider<AppLogger>(
|
|
(Ref ref) => const NoopAppLogger(),
|
|
);
|