lifecycle_logger 1.0.0
lifecycle_logger: ^1.0.0 copied to clipboard
Debug-focused Flutter utility for app and widget lifecycle logging.
1.0.0 #
- Added unified event callback support with
LifecycleLogger.attach(onEvent: ...). - Added broadcast stream API via
LifecycleLogger.events. - Added built-in event filtering support (
includeTypes,excludeTypes, route/widget include/exclude filters, and customfilter). - Added app lifecycle transition callback support via
onStateTransition(previous, current, event). - Added sink safety handling with
onSinkErrorso sink exceptions do not crash lifecycle delivery. - Added attach-level metadata enrichment via
metadata, now available onLifecycleEvent.metadata.
0.0.4 #
- Added configurable console log tag via
LifecycleLogger.attach(tag: '...').
0.0.3 #
- Added structured
LifecycleEventandLifecycleEventTypemodels. - Added configurable event sink support through
LifecycleLogger.attach(sink: ..., logToConsole: ...). - Added optional route lifecycle tracking via
LifecycleLogger.routeObserverandenableRouteObserver. - Added tests for typed sink events and route observer event emission.
0.0.2 #
- Reduced minimum Flutter SDK requirement to
>=3.0.0. - Updated compatibility handling for lifecycle enum values on older Flutter versions.
0.0.1 #
- Initial release of
lifecycle_logger. - Added
LifecycleLogger.attach()andLifecycleLogger.detach()for app lifecycle observation. - Added
LifecycleAwaremixin for widgetinitStateanddisposelogging with hooks. - Added internal centralized logger with
[Lifecycle]prefix. - Added minimal example app and behavior tests.