Skip to content

feat(logging): Simplify passing options to the logging module#229

Merged
wdullaer merged 2 commits intomasterfrom
push-rnooswrmpmrl
Feb 27, 2026
Merged

feat(logging): Simplify passing options to the logging module#229
wdullaer merged 2 commits intomasterfrom
push-rnooswrmpmrl

Conversation

@wdullaer
Copy link
Contributor

Rather than expecting people to type error prone fx value groups, we expose module options as a vararg in the module constructor.

This gives application writers an easier way to tune the module.

Other modules already use this pattern successfully.

We also made the following subcomponent tuning:

  • We expose additional options on the fx system logger
  • We only show debug logs of the fx system logger in development mode
  • We never show debug logs of the grpc framework
  • Grpc client logging interceptors can be removed from the system

Rather than expecting people to type error prone fx value groups, we
expose module options as a vararg in the module constructor.

This gives application writers an easier way to tune the module.

Other modules already use this pattern successfully.

We also made the following subcomponent tuning:
* We expose additional options on the fx system logger
* We only show debug logs of the fx system logger in development mode
* We never show debug logs of the grpc framework

All logs emitted by the fx system itself are also logged via the zap Logger. In development mode
all events are logged at Debug level, errors are logged at Error level.
In preproduction and production mode only Error events are logged.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@wdullaer wdullaer merged commit bd3ec3c into master Feb 27, 2026
5 checks passed
@wdullaer wdullaer deleted the push-rnooswrmpmrl branch February 27, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants