fx v1.14.0 Release Notes

Release Date: 2021-08-12 // over 1 year ago
  • โž• 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.