Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "zerolog", fx.Provide( New, ToSlog, loggingfx.DefaultConfig, ), )
Module returns a zerolog constructor and adapters to common loggers
Functions ¶
func Decorator ¶
func Decorator[T any]( configProvider configfx.Provider[T], logger *zerolog.Logger, ) (*zerolog.Logger, error)
Decorator is a fx.Decorate constructor to decorate logger to use settings found in config for all configs implementing [ConfigWithLogging].
The decorator will silently discard any errors since it is only decorating: A user could run version command without providing a valid config path. In such a case config file parsing would fail hence why errors are ignored.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.