You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(log): replace withLogNameSuffix with actor-based AsyncLocalStorage
Introduces a new actor system using AsyncLocalStorage for cleaner log output.
Components created within a withBindings() callback automatically inherit the
actor label in their logs, displayed as a separate field rather than appended
to the module name.
Key changes:
- Add LoggerBindings type with actor and instanceId fields
- Create pino-logger-server.ts with withBindings/getBindings using AsyncLocalStorage
- Export server utilities from @aztec/foundation/log/server (not main export)
- Keep pino-logger.ts browser-safe (no node:async_hooks import)
- Update createLogger() to accept optional bindings
- Update pretty print format to show: {actor} {module} {instanceId} {msg}
- Deprecate withLogNameSuffix() in favor of withBindings()
- Add actor option to PXECreationOptions (deprecate useLogSuffix)
- Move module-level loggers to class instances in checkpoint_builder.ts
- Add instanceId to epoch-proving-job logger using job UUID
- Wrap main node/PXE creation with withBindings({ actor: 'MAIN' }) in e2e setup
Co-Authored-By: Claude Opus 4.5 <[email protected]>
0 commit comments