Documentation ¶
Overview ¶
Package logging provides a logger that logs fx events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFxLoggingOption ¶ added in v0.60.0
DefaultFxLoggingOption creates an fx.Option to configure the Fx logger, either to do nothing (the default) or to log to the console (when TRACE_FX is set at `1`).
func EnableFxLoggingOnDebug ¶ added in v0.60.0
EnableFxLoggingOnDebug enables the logs for FX events when log_level is debug. This function requires that DefaultFxLoggingOption is part of the fx Options. This function uses generics to avoid depending on the logger component. When TRACE_FX is set to 0, it will disable the logging.
Types ¶
Click to show internal directories.
Click to hide internal directories.