Skip to content

pkg/logger: add WithOptions & SugaredLogger.WithOptions#1871

Open
jmank88 wants to merge 1 commit intomainfrom
logger-with-opts
Open

pkg/logger: add WithOptions & SugaredLogger.WithOptions#1871
jmank88 wants to merge 1 commit intomainfrom
logger-with-opts

Conversation

@jmank88
Copy link
Contributor

@jmank88 jmank88 commented Mar 2, 2026

@jmank88 jmank88 requested a review from a team as a code owner March 2, 2026 22:44
@github-actions
Copy link

github-actions bot commented Mar 2, 2026

👋 jmank88, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

⚠️ API Diff Results - github.com/smartcontractkit/chainlink-common

⚠️ Breaking Changes (1)

pkg/logger.SugaredLogger (1)
  • WithOptions — ➕ Added

✅ Compatible Changes (2)

pkg/logger (1)
  • WithOptions — ➕ Added
pkg/logger.SugaredLogger (1)
  • WithOptions — ➕ Added

📄 View full apidiff report

return l
}

func WithOptions(l Logger, opts ...zap.Option) Logger {
Copy link
Contributor

Choose a reason for hiding this comment

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

huh - what use case does this support? I thought the sugared logger was always purposefully more locked down

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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.

2 participants