ModuleLifecycleLogger typedef
LogoModularity

ModuleLifecycleLogger#

typedef ModuleLifecycleLogger = void Function( ModuleLifecycleEvent event, Type moduleType, { Map<String, Object?>? details, Object? retentionKey, })

Callback signature for module lifecycle logging.

Parameters:

  • event: The lifecycle event type.
  • moduleType: The runtime type of the module.
  • retentionKey: The cache key (null if not applicable).
  • details: Additional context (override scope hash, ref count, etc.).