Skip to content

logp: add Name method to Logger#391

Merged
efd6 merged 1 commit intomainfrom
logp_name
Apr 1, 2026
Merged

logp: add Name method to Logger#391
efd6 merged 1 commit intomainfrom
logp_name

Conversation

@efd6
Copy link
Copy Markdown
Contributor

@efd6 efd6 commented Apr 1, 2026

Expose the underlying zap Logger.Name method so callers can retrieve the logger's dot-joined name. This is needed to carry the logger name across when bridging to slog via zapslog.

What does this PR do?

It adds a call-through to the zap logger name method.

Why is it important?

This allows bridging to log/slog without loss of logger naming behaviour.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

Related issues

@efd6 efd6 self-assigned this Apr 1, 2026
@efd6 efd6 requested a review from a team as a code owner April 1, 2026 03:03
@efd6 efd6 added the enhancement New feature or request label Apr 1, 2026
@efd6 efd6 requested review from belimawr and rdner and removed request for a team April 1, 2026 03:03
@efd6
Copy link
Copy Markdown
Contributor Author

efd6 commented Apr 1, 2026

Build failure is unrelated; due to tool Go version dependency not being satisfied by specified Go version.

@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Apr 1, 2026
Expose the underlying zap Logger.Name method so callers can
retrieve the logger's dot-joined name. This is needed to carry
the logger name across when bridging to slog via zapslog.
@elasticmachine
Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

History

cc @efd6

@efd6 efd6 merged commit cfbc270 into main Apr 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants