Skip to content

define separate "Fielder" interface - #1525

Draft
thaJeztah wants to merge 1 commit into
sirupsen:masterfrom
thaJeztah:fielder
Draft

define separate "Fielder" interface#1525
thaJeztah wants to merge 1 commit into
sirupsen:masterfrom
thaJeztah:fielder

Conversation

@thaJeztah

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the logging interfaces by extracting the field-related methods into a dedicated Fielder interface, then embedding it into FieldLogger, clarifying the separation between “structured fields” capabilities and the full logging surface.

Changes:

  • Introduced a new exported Fielder interface for WithField/WithFields/WithError.
  • Updated FieldLogger to embed Fielder rather than declaring those methods inline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread logrus.go

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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