Skip to content

v1.14.0

Compare
Choose a tag to compare
@shirchen shirchen released this 12 Aug 21:49
· 273 commits to master since this release
af8dcf3

Added

  • Introduce the new fx.WithLogger option. Provide a constructor for
    fxevent.Logger objects with it to customize how Fx logs events.
  • Add new fxevent package that exposes events from Fx in a structured way.
    Use this to write custom logger implementations for use with the
    fx.WithLogger option.
  • Expose and log additional information when lifecycle hooks time out.

Changed

  • Fx now emits structured JSON logs by default. These may be parsed and
    processed by log ingestion systems.
  • fxtest.Lifecycle now logs to the provided testing.TB instead of stderr.
  • fx.In and fx.Out are now type aliases instead of structs.