fx v1.14.0 Release Notes
Release Date: 2021-08-12 // over 2 years ago-
โ Added
- Introduce the new
fx.WithLogger
option. Provide a constructor forfxevent.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 thefx.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 providedtesting.TB
instead of stderr. fx.In
andfx.Out
are now type aliases instead of structs.
- Introduce the new